chore: update build.gradle for easier testing of nightly release
This commit is contained in:
parent
0aa432bf6e
commit
325d962bbb
|
@ -19,8 +19,23 @@ android {
|
||||||
nightly{
|
nightly{
|
||||||
storeFile = file("keystore/nightly_keystore.jks")
|
storeFile = file("keystore/nightly_keystore.jks")
|
||||||
storePassword System.getenv("SIGNING_STORE_PASSWORD")
|
storePassword System.getenv("SIGNING_STORE_PASSWORD")
|
||||||
|
if (storePassword == null) {
|
||||||
|
Properties properties = new Properties()
|
||||||
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||||
|
storePassword = properties.getProperty('SIGNING_STORE_PASSWORD')
|
||||||
|
}
|
||||||
keyAlias System.getenv("SIGNING_KEY_ALIAS")
|
keyAlias System.getenv("SIGNING_KEY_ALIAS")
|
||||||
|
if (keyAlias == null) {
|
||||||
|
Properties properties = new Properties()
|
||||||
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||||
|
keyAlias = properties.getProperty('SIGNING_KEY_ALIAS')
|
||||||
|
}
|
||||||
keyPassword System.getenv("SIGNING_KEY_PASSWORD")
|
keyPassword System.getenv("SIGNING_KEY_PASSWORD")
|
||||||
|
if (keyPassword == null) {
|
||||||
|
Properties properties = new Properties()
|
||||||
|
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||||
|
keyPassword = properties.getProperty('SIGNING_KEY_PASSWORD')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue