allow building the debug app version without a valid keystore.properties file

This commit is contained in:
tibbi 2019-12-19 21:51:48 +01:00
parent c3bcb3015e
commit e16a8ff2a0

View File

@ -6,7 +6,9 @@ apply plugin: 'de.timfreiheit.resourceplaceholders'
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
compileSdkVersion 28
@ -24,6 +26,7 @@ android {
}
signingConfigs {
if (keystorePropertiesFile.exists()) {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
@ -31,6 +34,7 @@ android {
storePassword keystoreProperties['storePassword']
}
}
}
buildTypes {
debug {