Skip to content

Commit e68880b

Browse files
committed
add separate release target for Play Store
1 parent 74a9f99 commit e68880b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

app/build.gradle.kts

+15
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ android {
2222
keyAlias = keystoreProperties["keyAlias"] as String
2323
keyPassword = keystoreProperties["keyPassword"] as String
2424
}
25+
26+
create("play") {
27+
storeFile = rootProject.file(keystoreProperties["storeFile"]!!)
28+
storePassword = keystoreProperties["storePassword"] as String
29+
keyAlias = keystoreProperties["uploadKeyAlias"] as String
30+
keyPassword = keystoreProperties["uploadKeyPassword"] as String
31+
}
2532
}
2633
}
2734

@@ -51,6 +58,14 @@ android {
5158
}
5259
}
5360

61+
create("play") {
62+
initWith(getByName("release"))
63+
applicationIdSuffix = ".play"
64+
if (useKeystoreProperties) {
65+
signingConfig = signingConfigs.getByName("play")
66+
}
67+
}
68+
5469
buildFeatures {
5570
viewBinding = true
5671
}

0 commit comments

Comments
 (0)