From 325d962bbb3daa59a80b38496509228c947aad3a Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Fri, 7 Apr 2023 19:13:06 -0300 Subject: [PATCH] chore: update build.gradle for easier testing of nightly release --- mastodon/build.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mastodon/build.gradle b/mastodon/build.gradle index 76754943f..4bfccc6f9 100644 --- a/mastodon/build.gradle +++ b/mastodon/build.gradle @@ -19,8 +19,23 @@ android { nightly{ storeFile = file("keystore/nightly_keystore.jks") 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") + 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") + if (keyPassword == null) { + Properties properties = new Properties() + properties.load(project.rootProject.file('local.properties').newDataInputStream()) + keyPassword = properties.getProperty('SIGNING_KEY_PASSWORD') + } } }