summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2024-12-03 16:42:54 +0100
committerAlbin <albin@mullvad.net>2024-12-03 16:42:54 +0100
commit2bf40389ee140fbeca4d1db3239c5fec8c998588 (patch)
tree7ded4dd7bfa61284a7b18b8b22f2849e7b3941fa /android
parenta0312cac2ae1e8a3365acf1dfd799334f702a1f0 (diff)
parent424cc4cb93e458e7d76659de66aff266cb5c102b (diff)
downloadmullvadvpn-2bf40389ee140fbeca4d1db3239c5fec8c998588.tar.xz
mullvadvpn-2bf40389ee140fbeca4d1db3239c5fec8c998588.zip
Merge branch 'automatically-publish-stagemole-alpha-builds-to-google-play-droid-819'
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)