Skip to content

Commit

Permalink
refactor: add new R8 rules to fix possible problems
Browse files Browse the repository at this point in the history
  • Loading branch information
fankes committed Sep 19, 2023
1 parent 58510ce commit 94d425f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
-adaptresourcefilecontents

-renamesourcefileattribute P
-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,Signature,LineNumberTable

# 排除注入的 Activity
-keep class com.fankes.tsbattery.ui.activity.parasitic.ConfigActivity
Expand All @@ -49,6 +49,7 @@
}

-keep class * extends android.app.Activity
-keepclassmembers class * implements androidx.viewbinding.ViewBinding {
-keep class * implements androidx.viewbinding.ViewBinding {
<init>();
*** inflate(android.view.LayoutInflater);
}

0 comments on commit 94d425f

Please sign in to comment.