Skip to content

Commit

Permalink
fix(build): properly setup signing configs
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck authored and Bambooin committed Mar 10, 2023
1 parent 459dc09 commit 266c021
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,11 @@ android {
signingConfigs {
create("release") {
val keyPropFile = rootProject.file("keystore.properties")
val props = if (keyPropFile.exists()) {
Properties().apply { load(keyPropFile.inputStream()) }
} else {
null
}
if (props != null && props.contains("storeFile")) {
storeFile = rootProject.file((props["storeFile"] as? String) ?: "none")
if (keyPropFile.exists()) {
val props = Properties()
props.load(keyPropFile.inputStream())

storeFile = rootProject.file(props["storeFile"]!!)
storePassword = props["storePassword"] as? String
keyAlias = props["keyAlias"] as? String
keyPassword = props["keyPassword"] as? String
Expand Down

0 comments on commit 266c021

Please sign in to comment.