From a04145076674ae2edb713b948f833d3c3f76412e Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 9 May 2023 10:09:03 +0800 Subject: [PATCH] update config --- app/build.gradle | 4 +++ app/proguard-rules.pro | 58 ++++++++++++++++++++++++++++++++---------- 2 files changed, 49 insertions(+), 13 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index ead724122..25df1f9a5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -194,11 +194,15 @@ android { buildTypes { release { minifyEnabled true + shrinkResources true + zipAlignEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } debug { minifyEnabled true + shrinkResources true + zipAlignEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index f32b45a64..31e4fabc2 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -12,19 +12,52 @@ # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} +-keepclassmembers class fqcn.of.javascript.interface.for.webview { + public *; +} # Uncomment this to preserve the groupLast number information for # debugging stack traces. -#-keepattributes SourceFile,LineNumberTable +-keepattributes SourceFile,LineNumberTable # If you keep the groupLast number information, uncomment this to # hide the original source file name. -#-renamesourcefileattribute SourceFile -#-keep class * implements com.yunbao.common.bean.**{*; } --keep class com.yunbao.common.http.**{*;} +-renamesourcefileattribute SourceFile + +-keep class com.yunbao.**{ + public ; + protected ; +} +-keep class * implements android.os.Parcelable { + *; +} +-keep class * implements com.yunbao.common.bean.BaseModel { + *; +}-keep class com.yunbao.common.bean.* { + *; +} + +-keep class com.yunbao.common.views.weight.VerticalViewPager$LayoutParams{ + *; +} +-keep class android.**{ + *; +} +#-keep class com.yunbao.common.activity.**{*;} +#-keep class com.yunbao.common.adapter.**{*;} +#-keep class com.yunbao.common.bean.**{*;} +#-keep class com.yunbao.common.custom.**{*;} +#-keep class * extends com.yunbao.common.activity.AbsActivity{ +# public *; +# protected *; +#} +#-keep class * extends androidx.appcompat.app.AppCompatActivity{ +# public *; +# protected *; +#} +-keep class **.R$* { + public static ; +} -keep class com.tencent.** { *; } -keep class com.adjust.sdk.**{ *; } -keep class com.google.android.gms.common.ConnectionResult { @@ -201,9 +234,8 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode; #-keep,allowoptimization,allowshrinking,allowobfuscation class <3> #-----glide --keep public class * implements com.bumptech.glide.module.GlideModule --keep public class * extends com.bumptech.glide.module.AppGlideModule --keep public enum com.bumptech.glide.load.ImageHeaderParser$** { - **[] $VALUES; - public *; -} \ No newline at end of file +#-keep public class com.bumptech.glide.** {*;} +#-keep public class jp.co.cyberagent.** {*;} +#-dontwarn jp.co.cyberagent.android.gpuimage.** +# +#-printconfiguration tmp/full-r8-config.txt \ No newline at end of file