From ef78e13c93b385b9625347a04f5037ce1a8384c6 Mon Sep 17 00:00:00 2001 From: Karol Barenicki Date: Fri, 2 Jan 2015 21:03:15 +0100 Subject: [PATCH] Fix bug with uploading files on KitKat This commit fixes #81. The bug was caused by Proguard messing with the code. This commit adds a simple Proguard rule that prevents it from doing so. --- proguard-project.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proguard-project.txt b/proguard-project.txt index e4c4f4b..e4ea3e8 100644 --- a/proguard-project.txt +++ b/proguard-project.txt @@ -35,6 +35,13 @@ -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService +# Without this rule, openFileChooser does not get called on KitKat +-keep class acr.browser.lightning.LightningView$LightningChromeClient { + void openFileChooser(android.webkit.ValueCallback); + void openFileChooser(android.webkit.ValueCallback,java.lang.String); + void openFileChooser(android.webkit.ValueCallback,java.lang.String,java.lang.String); +} + -keepclasseswithmembernames class * { native ; }