4k
This commit is contained in:
Vendored
+15
@@ -1,6 +1,17 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
|
||||
# Keep attributes required for WebView JavascriptInterface & reflection
|
||||
-keepattributes JavascriptInterface
|
||||
-keepattributes *Annotation*
|
||||
-keepattributes Signature, InnerClasses, EnclosingMethod
|
||||
|
||||
# Keep all @JavascriptInterface methods across the app
|
||||
-keepclassmembers class com.tv.browser.** {
|
||||
@android.webkit.JavascriptInterface <methods>;
|
||||
}
|
||||
|
||||
# Keep WebView related classes
|
||||
-keepclassmembers class * extends android.webkit.WebViewClient {
|
||||
public void *(android.webkit.WebView, java.lang.String);
|
||||
@@ -9,3 +20,7 @@
|
||||
-keepclassmembers class * extends android.webkit.WebChromeClient {
|
||||
public void *(android.webkit.WebView, java.lang.String);
|
||||
}
|
||||
|
||||
# NanoHTTPD
|
||||
-dontwarn fi.iki.elonen.**
|
||||
-keep class fi.iki.elonen.** { *; }
|
||||
|
||||
Reference in New Issue
Block a user