From 1698a32d75ec2ea2aa37c71c1b9c1b17ec362f4d Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sat, 8 Apr 2023 20:58:23 -0300 Subject: [PATCH] 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 --- mastodon/build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mastodon/build.gradle b/mastodon/build.gradle index b07e6ccea..aa41c3894 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -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 }