summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2024-11-28 16:11:29 +0100
committerAlbin <albin@mullvad.net>2024-12-03 16:40:49 +0100
commitecb15f3eea95c4afe9f2af672a1a3f07d9d740d1 (patch)
treedb3db56a121280ef3ebd9c76a828575b94907e89 /android
parenta0312cac2ae1e8a3365acf1dfd799334f702a1f0 (diff)
downloadmullvadvpn-ecb15f3eea95c4afe9f2af672a1a3f07d9d740d1.tar.xz
mullvadvpn-ecb15f3eea95c4afe9f2af672a1a3f07d9d740d1.zip
Enable stagemole play publishing in gradle
Diffstat (limited to 'android')
-rw-r--r--android/app/build.gradle.kts19
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)