Skip to content

Commit

Permalink
Update build.gradle.kts (#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
CranberrySoup authored Aug 1, 2024
1 parent 5012821 commit 14dd418
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ android {
}*/

signingConfigs {
create("prerelease") {
if (prereleaseStoreFile != null) {
if (prereleaseStoreFile != null) {
create("prerelease") {
storeFile = file(prereleaseStoreFile)
storePassword = System.getenv("SIGNING_STORE_PASSWORD")
keyAlias = System.getenv("SIGNING_KEY_ALIAS")
Expand Down Expand Up @@ -124,7 +124,11 @@ android {
resValue("bool", "is_prerelease", "true")
buildConfigField("boolean", "BETA", "true")
applicationIdSuffix = ".prerelease"
signingConfig = signingConfigs.getByName("prerelease")
if (signingConfigs.names.contains("prerelease")) {
signingConfig = signingConfigs.getByName("prerelease")
} else {
logger.warn("No prerelease signing config!")
}
versionNameSuffix = "-PRE"
versionCode = (System.currentTimeMillis() / 60000).toInt()
}
Expand Down

0 comments on commit 14dd418

Please sign in to comment.