make building the debug app version easier
This commit is contained in:
parent
01dceee117
commit
f2fd6c29a7
1 changed files with 10 additions and 6 deletions
|
@ -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,11 +25,13 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
if (keystorePropertiesFile.exists()) {
|
||||||
keyAlias keystoreProperties['keyAlias']
|
release {
|
||||||
keyPassword keystoreProperties['keyPassword']
|
keyAlias keystoreProperties['keyAlias']
|
||||||
storeFile file(keystoreProperties['storeFile'])
|
keyPassword keystoreProperties['keyPassword']
|
||||||
storePassword keystoreProperties['storePassword']
|
storeFile file(keystoreProperties['storeFile'])
|
||||||
|
storePassword keystoreProperties['storePassword']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue