diff --git a/app/build.gradle b/app/build.gradle index 5f532785..ac68a469 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -12,7 +12,16 @@ android { versionName "0.0.3" } - signingConfigs { + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +if(hasProperty('MATERIAL_KEYSTORE_FILE')) { + android.signingConfigs { release { storeFile file(MATERIAL_KEYSTORE_FILE) storePassword MATERIAL_KEYSTORE_PASSWORD @@ -21,13 +30,7 @@ android { } } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - signingConfig signingConfigs.release - } - } + android.buildTypes.release.signingConfig signingConfigs.release } dependencies {