fix: handle missing storeFile in signing config
Avoid crash when keystore.properties has no storeFile entry by using takeIf/let to safely resolve the path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5238d5a668
commit
0ede5c690b
1 changed files with 2 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ android {
|
|||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
storeFile = rootProject.file(keystoreProperties.getProperty("storeFile", ""))
|
||||
storeFile = keystoreProperties.getProperty("storeFile", "")
|
||||
.takeIf { it.isNotEmpty() }?.let { rootProject.file(it) }
|
||||
storePassword = keystoreProperties.getProperty("storePassword", "")
|
||||
keyAlias = keystoreProperties.getProperty("keyAlias", "")
|
||||
keyPassword = keystoreProperties.getProperty("keyPassword", "")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue