Skip to content

Commit

Permalink
混淆文件替换
Browse files Browse the repository at this point in the history
  • Loading branch information
maning0303 committed Oct 18, 2020
1 parent c9cace3 commit dd0704d
Show file tree
Hide file tree
Showing 2 changed files with 386 additions and 326 deletions.
7 changes: 3 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ android {
exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.properties'
}

File customerproguardFile = file('src/proguard.cfg')
buildTypes {
release {
//混淆
Expand All @@ -79,15 +78,15 @@ android {
signingConfig signingConfigs.release
//移除无用的资源文件
shrinkResources true
proguardFiles customerproguardFile.path
buildConfigField "boolean", "LOG_DEBUG", "false"
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
//混淆
minifyEnabled false
minifyEnabled true
signingConfig signingConfigs.release
proguardFiles customerproguardFile.path
buildConfigField "boolean", "LOG_DEBUG", "true"
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Expand Down
Loading

0 comments on commit dd0704d

Please sign in to comment.