Commit 6f8cdc9
committed
Prioritize local keystore over CI/CD keystore
This commit refactors the signing configuration in `build.gradle.kts` to prioritize a local keystore file (`mLauncher.jks`) if it exists. The CI/CD-provided keystore, decoded from a Base64 environment variable, will now be used as a fallback.
The changes include:
- Logic to check for `app/mLauncher.jks` before attempting to create the temporary keystore for CI environments.
- A new validation step that throws a `GradleException` if the decoded keystore from the environment variable is smaller than 1024 bytes.
- Additional logging to print the path and size of the keystore being used for the release build.1 parent 9339517 commit 6f8cdc9
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | | - | |
89 | 94 | | |
| 95 | + | |
90 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
| 105 | + | |
| 106 | + | |
94 | 107 | | |
95 | | - | |
96 | | - | |
| 108 | + | |
| 109 | + | |
97 | 110 | | |
98 | 111 | | |
99 | 112 | | |
| |||
0 commit comments