update config

This commit is contained in:
zlzw 2023-05-09 10:09:03 +08:00
parent e9488df780
commit a041450766
2 changed files with 49 additions and 13 deletions

View File

@ -194,11 +194,15 @@ android {
buildTypes { buildTypes {
release { release {
minifyEnabled true minifyEnabled true
shrinkResources true
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release signingConfig signingConfigs.release
} }
debug { debug {
minifyEnabled true minifyEnabled true
shrinkResources true
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release signingConfig signingConfigs.release
} }

View File

@ -12,19 +12,52 @@
# If your project uses WebView with JS, uncomment the following # If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface # and specify the fully qualified class name to the JavaScript interface
# class: # class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *; public *;
#} }
# Uncomment this to preserve the groupLast number information for # Uncomment this to preserve the groupLast number information for
# debugging stack traces. # debugging stack traces.
#-keepattributes SourceFile,LineNumberTable -keepattributes SourceFile,LineNumberTable
# If you keep the groupLast number information, uncomment this to # If you keep the groupLast number information, uncomment this to
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile -renamesourcefileattribute SourceFile
#-keep class * implements com.yunbao.common.bean.**{*; }
-keep class com.yunbao.common.http.**{*;} -keep class com.yunbao.**{
public <methods>;
protected <methods>;
}
-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 <fields>;
}
-keep class com.tencent.** { *; } -keep class com.tencent.** { *; }
-keep class com.adjust.sdk.**{ *; } -keep class com.adjust.sdk.**{ *; }
-keep class com.google.android.gms.common.ConnectionResult { -keep class com.google.android.gms.common.ConnectionResult {
@ -201,9 +234,8 @@ rx.internal.util.atomic.LinkedQueueNode* consumerNode;
#-keep,allowoptimization,allowshrinking,allowobfuscation class <3> #-keep,allowoptimization,allowshrinking,allowobfuscation class <3>
#-----glide #-----glide
-keep public class * implements com.bumptech.glide.module.GlideModule #-keep public class com.bumptech.glide.** {*;}
-keep public class * extends com.bumptech.glide.module.AppGlideModule #-keep public class jp.co.cyberagent.** {*;}
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** { #-dontwarn jp.co.cyberagent.android.gpuimage.**
**[] $VALUES; #
public *; #-printconfiguration tmp/full-r8-config.txt
}