Skip to content

Commit

Permalink
fix: 修正proguard规则以保留特定类和接口
Browse files Browse the repository at this point in the history
  • Loading branch information
xihan123 committed Jan 29, 2025
1 parent 8a49d18 commit ac50d04
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class * extends android.view.View

-keep class android.app.AndroidAppHelper{*;}
-keep class android.* { *; }

# Remove Kotlin Instrisics (should not impact the app)
# https://proandroiddev.com/is-your-kotlin-code-really-obfuscated-a36abf033dde
Expand Down Expand Up @@ -78,9 +79,12 @@ public *** getLocalOverscrollConfiguration(...);

#--------------------------------Xposed指令区---------------------------------
# 保留 Xposed 框架相关类和接口
# Xposed 框架保留
-keep class de.robv.android.xposed.** { *; }
-keep interface de.robv.android.xposed.** { *; }
-keepnames class de.robv.android.xposed.**
-keep class de.robv.android.xposed.IXposedHookLoadPackage
-keepnames class de.robv.android.xposed.IXposedHookLoadPackage


# 模块入口类和方法
-keep class cn.xihan.signhook.HookEntry { *; }
Expand Down

0 comments on commit ac50d04

Please # to comment.