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:
LucasGGamerM 2023-04-08 20:58:23 -03:00
parent 1e54b21842
commit 1698a32d75
1 changed files with 7 additions and 1 deletions

View File

@ -55,7 +55,13 @@ android {
}
nightly{
initWith release
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
}