From 94d425fcf771f82d1a54548b8c62aced0054cc67 Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Tue, 19 Sep 2023 08:18:53 +0800 Subject: [PATCH] refactor: add new R8 rules to fix possible problems --- app/proguard-rules.pro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index a2cf48b..e2019c2 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -32,7 +32,7 @@ -adaptresourcefilecontents -renamesourcefileattribute P --keepattributes SourceFile,LineNumberTable +-keepattributes SourceFile,Signature,LineNumberTable # 排除注入的 Activity -keep class com.fankes.tsbattery.ui.activity.parasitic.ConfigActivity @@ -49,6 +49,7 @@ } -keep class * extends android.app.Activity --keepclassmembers class * implements androidx.viewbinding.ViewBinding { +-keep class * implements androidx.viewbinding.ViewBinding { + (); *** inflate(android.view.LayoutInflater); } \ No newline at end of file