Skip to content

Commit

Permalink
add Play Store release variant
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Oct 5, 2022
1 parent 3e9367b commit 5f7424d
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 All @@ -48,6 +55,14 @@ android {
signingConfig = signingConfigs.getByName("release")
}
}

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

compileOptions {
Expand Down

0 comments on commit 5f7424d

Please sign in to comment.