Skip to content

Commit 0fce840

Browse files
graycreateclaude
andcommitted
fix: Make release signing configuration non-blocking for CI
- Remove exception throwing during configuration phase - Set empty defaults for signing credentials to allow gradle configuration - This fixes CI failures for dependabot PRs that don't have access to secrets - Release builds will still fail naturally if credentials are missing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent be95cd4 commit 0fce840

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)