diff options
| author | Albin <albin@mullvad.net> | 2024-11-28 16:11:29 +0100 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2024-12-03 16:40:49 +0100 |
| commit | ecb15f3eea95c4afe9f2af672a1a3f07d9d740d1 (patch) | |
| tree | db3db56a121280ef3ebd9c76a828575b94907e89 /android | |
| parent | a0312cac2ae1e8a3365acf1dfd799334f702a1f0 (diff) | |
| download | mullvadvpn-ecb15f3eea95c4afe9f2af672a1a3f07d9d740d1.tar.xz mullvadvpn-ecb15f3eea95c4afe9f2af672a1a3f07d9d740d1.zip | |
Enable stagemole play publishing in gradle
Diffstat (limited to 'android')
| -rw-r--r-- | android/app/build.gradle.kts | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index fa098430df..f2a76b6d8d 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -1,5 +1,6 @@ import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties import com.android.build.gradle.internal.tasks.factory.dependsOn +import com.github.triplet.gradle.androidpublisher.ReleaseStatus import java.io.FileInputStream import java.util.Properties import org.gradle.internal.extensions.stdlib.capitalized @@ -53,6 +54,12 @@ android { } } + playConfigs { + register("playStagemoleRelease") { + enabled = true + } + } + androidResources { @Suppress("UnstableApiUsage") generateLocaleConfig = true @@ -315,7 +322,17 @@ tasks.create("printVersion") { } } -play { serviceAccountCredentials.set(file("play-api-key.json")) } +play { + serviceAccountCredentials.set(file("$credentialsPath/play-api-key.json")) + // Disable for all flavors by default. Only specific flavors should be enabled using PlayConfigs. + enabled = false + // This property refers to the Publishing API (not git). + commit = true + defaultToAppBundles = true + track = "internal" + releaseStatus = ReleaseStatus.COMPLETED + userFraction = 1.0 +} dependencies { implementation(projects.lib.common) |
