Files
tv/app/proguard-rules.pro
2026-11-09 11:24:40 +08:00

27 lines
930 B
Prolog

# 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);
public boolean *(android.webkit.WebView, java.lang.String);
}
-keepclassmembers class * extends android.webkit.WebChromeClient {
public void *(android.webkit.WebView, java.lang.String);
}
# NanoHTTPD
-dontwarn fi.iki.elonen.**
-keep class fi.iki.elonen.** { *; }