Skip to content

Commit

Permalink
add separate release target for Play Store
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Feb 25, 2022
1 parent 74a9f99 commit e68880b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ android {
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
}

create("play") {
storeFile = rootProject.file(keystoreProperties["storeFile"]!!)
storePassword = keystoreProperties["storePassword"] as String
keyAlias = keystoreProperties["uploadKeyAlias"] as String
keyPassword = keystoreProperties["uploadKeyPassword"] as String
}
}
}

Expand Down Expand Up @@ -51,6 +58,14 @@ android {
}
}

create("play") {
initWith(getByName("release"))
applicationIdSuffix = ".play"
if (useKeystoreProperties) {
signingConfig = signingConfigs.getByName("play")
}
}

buildFeatures {
viewBinding = true
}
Expand Down

0 comments on commit e68880b

Please sign in to comment.