This commit is contained in:
haomingming
2026-11-09 11:24:40 +08:00
parent 813771abd2
commit 227a39552d
18 changed files with 2405 additions and 2062 deletions
+15
View File
@@ -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.** { *; }