feat:临时修改配置,验证混淆问题
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
6
app/proguard-rules.pro
vendored
6
app/proguard-rules.pro
vendored
@@ -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
|
||||
|
@@ -14,7 +14,7 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled true
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
@@ -122,7 +122,7 @@ public final class RxNetManager {
|
||||
private RxNetManager mRxNetManager;
|
||||
|
||||
public Builder debug(boolean isDebug) {
|
||||
RxNetLog.DEBUG = isDebug;
|
||||
RxNetLog.DEBUG = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user