feat: add build.gradle parameters for nightly builds

This commit is contained in:
LucasGGamerM 2023-04-01 20:38:51 -03:00
parent 72e0a9c32e
commit 14775aeb67
1 changed files with 13 additions and 0 deletions

View File

@ -32,6 +32,19 @@ android {
nightly{
versionNameSuffix '-nightly'
applicationIdSuffix '.nightly'
def tmpFilePath = System.getProperty("user.home") + "/work/_temp/keystore/"
def allFilesFromDir = new File(tmpFilePath).listFiles()
if (allFilesFromDir != null) {
def keystoreFile = allFilesFromDir.first()
keystoreFile.renameTo("keystore/nightly_keystore.jks")
}
storeFile = file("keystore/nightly_keystore.jks")
storePassword System.getenv("SIGNING_STORE_PASSWORD")
keyAlias System.getenv("SIGNING_KEY_ALIAS")
keyPassword System.getenv("SIGNING_KEY_PASSWORD")
}
playRelease{
initWith release