mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-02 19:57:15 +01:00
allow building the debug app version without a valid keystore.properties file
This commit is contained in:
parent
c3bcb3015e
commit
e16a8ff2a0
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user