Skip to content

Commit bb1ef8e

Browse files
graycreateclaude
andcommitted
fix: Handle empty GHUI_KEY_ALIAS environment variable
- Check if GHUI_KEY_ALIAS is empty string and default to 'ghui' - Prevents 'Keystore was tampered with' errors when key alias is empty - Ensures consistent key alias handling in CI/CD 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent bcb904e commit bb1ef8e

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)