chore: tweak build.gradle to check properties for current date
Check the local.properties file for date in case its null. This should be useful for testing the new nightly updater
This commit is contained in:
parent
1e54b21842
commit
1698a32d75
|
@ -55,7 +55,13 @@ android {
|
|||
}
|
||||
nightly{
|
||||
initWith release
|
||||
versionNameSuffix '-nightly+@' + System.getenv("CURRENT_DATE")
|
||||
if(System.getenv("CURRENT_DATE") != null){
|
||||
versionNameSuffix '-nightly+@' + System.getenv("CURRENT_DATE")
|
||||
} else {
|
||||
Properties properties = new Properties()
|
||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
versionNameSuffix '-nightly+@' + properties.getProperty('SIGNING_KEY_PASSWORD')
|
||||
}
|
||||
applicationIdSuffix '.nightly'
|
||||
signingConfig signingConfigs.nightly
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue