Disable ProsGuard for debug builds

This commit is contained in:
Dominik Schürmann
2017-02-02 10:55:34 +01:00
parent ad8e115d96
commit 0fcdc3df58
2 changed files with 3 additions and 4 deletions

View File

@@ -185,7 +185,7 @@ android {
buildTypes { buildTypes {
release { release {
minifyEnabled true minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-release.pro'
// Reference them in the java files with e.g. BuildConfig.ACCOUNT_TYPE. // Reference them in the java files with e.g. BuildConfig.ACCOUNT_TYPE.
buildConfigField "String", "ACCOUNT_TYPE", "\"org.sufficientlysecure.keychain.account\"" buildConfigField "String", "ACCOUNT_TYPE", "\"org.sufficientlysecure.keychain.account\""
@@ -201,9 +201,8 @@ android {
} }
debug { debug {
minifyEnabled true // disable ProGuard for faster compile times for debug builds
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' minifyEnabled false
testProguardFile('proguard-rules.pro')
applicationIdSuffix ".debug" applicationIdSuffix ".debug"