feat:临时修改配置,验证混淆问题

This commit is contained in:
Max
2023-11-11 12:54:34 +08:00
parent 5184da2c63
commit 9def556a09
4 changed files with 9 additions and 9 deletions

View File

@@ -184,10 +184,10 @@ android {
buildConfigField "String", "BASE_URL_DEBUG", "BASE_URL"
buildConfigField "String", "BASE_URL_STAGING", "BASE_URL"
buildConfigField "String", "BASE_URL_RELEASE", "BASE_URL"
minifyEnabled true // 是否混淆
shrinkResources true // 开了混淆的时候才能开启 是否去除无效的资源文件
zipAlignEnabled true // 开了混淆的时候才能开启 是否进行压缩并重排列
crunchPngs true // 启用 PNG 压缩
minifyEnabled false // 是否混淆
// shrinkResources true // 开了混淆的时候才能开启 是否去除无效的资源文件
// zipAlignEnabled true // 开了混淆的时候才能开启 是否进行压缩并重排列
// crunchPngs true // 启用 PNG 压缩
signingConfig signingConfigs.v2
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

View File

@@ -29,9 +29,9 @@
# 保留行号
-keepattributes SourceFile,LineNumberTable
#-obfuscationdictionary ../dic.txt
#-classobfuscationdictionary ../dic.txt
#-packageobfuscationdictionary ../dic.txt
-obfuscationdictionary ../dic.txt
-classobfuscationdictionary ../dic.txt
-packageobfuscationdictionary ../dic.txt
#-dontwarn #//dontwarn去掉警告
#-dontskipnonpubliclibraryclassmembers

View File

@@ -14,7 +14,7 @@ android {
buildTypes {
release {
minifyEnabled true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

View File

@@ -122,7 +122,7 @@ public final class RxNetManager {
private RxNetManager mRxNetManager;
public Builder debug(boolean isDebug) {
RxNetLog.DEBUG = isDebug;
RxNetLog.DEBUG = true;
return this;
}