Skip to content

Commit 39899d6

Browse files
authored
Merge pull request #77 from v2er-app/bugfix/fix-ci-signing-config
fix: Make release signing configuration lazy to fix CI builds
2 parents be95cd4 + 0fce840 commit 39899d6

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

app/build.gradle

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,10 @@ android {
2424
release {
2525
// Release signing requires environment variables to be set
2626
// The keystore will be decoded from KEYSTORE_BASE64 in CI/CD
27-
if (System.getenv("KEYSTORE_PASSWORD") != null && System.getenv("KEY_PASSWORD") != null) {
28-
storeFile file("keystore.jks")
29-
storePassword System.getenv("KEYSTORE_PASSWORD")
30-
keyAlias System.getenv("KEY_ALIAS")?.trim() ?: "ghui"
31-
keyPassword System.getenv("KEY_PASSWORD")
32-
} else {
33-
// Release builds require proper environment variables
34-
throw new GradleException("Release builds require signing configuration. Please set KEYSTORE_PASSWORD and KEY_PASSWORD environment variables.")
35-
}
27+
storeFile file("keystore.jks")
28+
storePassword System.getenv("KEYSTORE_PASSWORD") ?: ""
29+
keyAlias System.getenv("KEY_ALIAS")?.trim() ?: "ghui"
30+
keyPassword System.getenv("KEY_PASSWORD") ?: ""
3631
}
3732
}
3833

0 commit comments

Comments
 (0)