From e68880b45d4cab0cb98982cb09bf7b21e4c623a4 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 25 Feb 2022 12:13:36 -0500 Subject: [PATCH] add separate release target for Play Store --- app/build.gradle.kts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3937a53..94fc41c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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 + } } } @@ -51,6 +58,14 @@ android { } } + create("play") { + initWith(getByName("release")) + applicationIdSuffix = ".play" + if (useKeystoreProperties) { + signingConfig = signingConfigs.getByName("play") + } + } + buildFeatures { viewBinding = true }