make building the debug app version easier

This commit is contained in:
tibbi 2019-12-19 21:54:43 +01:00
parent 01dceee117
commit f2fd6c29a7

View file

@ -5,7 +5,9 @@ apply plugin: 'kotlin-kapt'
def keystorePropertiesFile = rootProject.file("keystore.properties") def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties() def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android { android {
compileSdkVersion 28 compileSdkVersion 28
@ -23,6 +25,7 @@ android {
} }
signingConfigs { signingConfigs {
if (keystorePropertiesFile.exists()) {
release { release {
keyAlias keystoreProperties['keyAlias'] keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword'] keyPassword keystoreProperties['keyPassword']
@ -30,6 +33,7 @@ android {
storePassword keystoreProperties['storePassword'] storePassword keystoreProperties['storePassword']
} }
} }
}
buildTypes { buildTypes {
debug { debug {