Use ProGuard for minification

This commit is contained in:
Cameron Gutman
2018-05-08 18:43:23 -07:00
parent ebb1d0dfa2
commit 3a7398f321
2 changed files with 51 additions and 2 deletions
+6 -2
View File
@@ -48,6 +48,10 @@ android {
buildTypes {
debug {
applicationIdSuffix ".debug"
minifyEnabled true
useProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
// To whomever is releasing/using an APK in release mode with
@@ -82,8 +86,8 @@ android {
// TL;DR: Leave the following line alone!
applicationIdSuffix ".unofficial"
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt')
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}