fix: fixing signing config
This commit is contained in:
parent
1243c37fe2
commit
bf3838d881
1 changed files with 6 additions and 13 deletions
|
|
@ -39,24 +39,17 @@ android {
|
|||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
val storeFile = localProps.getProperty("storeFile")
|
||||
if (storeFile != null && storeFile.isNotEmpty()) {
|
||||
storeFile = file(storeFile)
|
||||
val storeFilePath = localProps.getProperty("storeFile")
|
||||
storeFile = file(storeFilePath)
|
||||
storePassword = localProps.getProperty("storePassword")
|
||||
keyAlias = localProps.getProperty("keyAlias")
|
||||
keyPassword = localProps.getProperty("keyPassword")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
val storeFile = localProps.getProperty("storeFile")
|
||||
signingConfig = if (storeFile != null && storeFile.isNotEmpty()) {
|
||||
signingConfigs.getByName("release")
|
||||
} else {
|
||||
signingConfigs.getByName("debug")
|
||||
}
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue