StandAPP/app/proguard-rules.pro

45 lines
1.4 KiB
Prolog
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GeckoView 混淆规则
-dontwarn org.mozilla.geckoview.**
-dontwarn org.mozilla.gecko.**
-keep class org.mozilla.gecko.** { *; }
-keep class org.mozilla.geckoview.** { *; }
# AndroidInterface 桥接类保护
-keep class com.stand.standapp.AndroidInterface { *; }
-keep class com.stand.standapp.AndroidInterface$Companion { *; }
# 忽略不存在的可选依赖报错
-dontwarn com.google.android.material.snackbar.**
-dontwarn java.beans.**
-dontwarn org.yaml.snakeyaml.**
# 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
# 保护 PTT 原生回调类native 通过 JNI 反射调用,不能混淆)
-keep class com.example.kingway.ptt.** { *; }
## 保护打印机 SDKjar 包中的类不能混淆)
-keep class com.dp.dp_serialportlist.** { *; }
-dontwarn com.dp.dp_serialportlist.**
-keep class com.zy.** { *; }
-dontwarn com.zy.**
#
## 保护硬件 GPIO 系统服务(隐藏 APIR8 不认识)
-keep class android.app.ZysjSystemManager { *; }
-dontwarn android.app.ZysjSystemManager
# 保护实体类 (如果你后续有 JSON 解析)
-keep class com.stand.standapp.** { *; }
-dontwarn java.beans.**
# R8 missing class 处理
-ignorewarnings