StandAPP/app/proguard-rules.pro

32 lines
922 B
Prolog

# AgentWeb 混淆规则
-keep class com.just.agentweb.** { *; }
-dontwarn com.just.agentweb.**
# 忽略不存在的可选依赖报错
-dontwarn com.alipay.sdk.**
-dontwarn com.download.library.**
-dontwarn com.google.android.material.snackbar.**
# 保护 JavaScript 交互接口 (非常重要!)
-keepattributes *Annotation*
-keepattributes *JavascriptInterface*
-keepclassmembers class * {
@android.webkit.JavascriptInterface <methods>;
}
# 保护你自己的 JS 交互类
-keep class com.stand.standapp.AndroidInterface { *; }
# OkHttp 混淆规则
-keepattributes Signature
-keepattributes InnerClasses
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn javax.annotation.**
-dontwarn org.conscrypt.**
# A resource is loaded at runtime for config index:
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
# 保护实体类 (如果你后续有 JSON 解析)
-keep class com.stand.standapp.** { *; }