Skip to content

Commit e925e0f

Browse files
authored
Merge pull request #61 from v2er-app/bugfix/fix-key-alias-handling
fix: Handle empty GHUI_KEY_ALIAS environment variable
2 parents bcb904e + bb1ef8e commit e925e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434
// This prevents the build from failing during configuration phase
3535
storeFile file("keystore.jks")
3636
storePassword System.getenv("GHUI_KEYSTORE_PASSWORD")
37-
keyAlias System.getenv("GHUI_KEY_ALIAS") ?: "ghui"
37+
keyAlias (System.getenv("GHUI_KEY_ALIAS") ?: "").trim().isEmpty() ? "ghui" : System.getenv("GHUI_KEY_ALIAS")
3838
keyPassword System.getenv("GHUI_KEY_PASSWORD")
3939
} else {
4040
// For local builds without proper signing setup, throw an error

0 commit comments

Comments
 (0)