File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ android {
29
29
storePassword GHUI_KEYSTORE_PASSWORD
30
30
keyAlias project. hasProperty(" GHUI_KEY_ALIAS" ) ? GHUI_KEY_ALIAS : " ghui"
31
31
keyPassword GHUI_KEY_PASSWORD
32
- } else if (project . hasProperty (" GHUI_KEYSTORE_PASSWORD" ) && project . hasProperty (" GHUI_KEY_PASSWORD" )) {
32
+ } else if (System . getenv (" GHUI_KEYSTORE_PASSWORD" ) != null && System . getenv (" GHUI_KEY_PASSWORD" ) != null ) {
33
33
// CI/CD environment but keystore file might not exist yet
34
34
// This prevents the build from failing during configuration phase
35
35
storeFile file(" keystore.jks" )
36
- storePassword GHUI_KEYSTORE_PASSWORD
37
- keyAlias project . hasProperty (" GHUI_KEY_ALIAS" ) ? GHUI_KEY_ALIAS : " ghui"
38
- keyPassword GHUI_KEY_PASSWORD
36
+ storePassword System . getenv( " GHUI_KEYSTORE_PASSWORD" )
37
+ keyAlias System . getenv (" GHUI_KEY_ALIAS" ) ?: " ghui"
38
+ keyPassword System . getenv( " GHUI_KEY_PASSWORD" )
39
39
} else {
40
40
// For local builds without proper signing setup, throw an error
41
41
throw new GradleException (" Release builds require signing configuration. Please provide GHUI_KEYSTORE_PASSWORD and GHUI_KEY_PASSWORD." )
You can’t perform that action at this time.
0 commit comments