summaryrefslogtreecommitdiffhomepage
path: root/ui/build.gradle.kts
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-05-04 16:45:01 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2023-05-04 16:45:01 +0200
commitcf4fca8086858319f1b395c9059c67b436222cbb (patch)
treeddbda52a84b59c779e8bb46f0e8c0b2a3c1d0675 /ui/build.gradle.kts
parent318f36a20550260042c3e5a21ba06331c5384f51 (diff)
gradle: remove runtime detection of play store
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/build.gradle.kts')
-rw-r--r--ui/build.gradle.kts5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/build.gradle.kts b/ui/build.gradle.kts
index 67e7a12d..8832a358 100644
--- a/ui/build.gradle.kts
+++ b/ui/build.gradle.kts
@@ -23,6 +23,7 @@ android {
versionCode = providers.gradleProperty("wireguardVersionCode").get().toInt()
versionName = providers.gradleProperty("wireguardVersionName").get()
buildConfigField("int", "MIN_SDK_VERSION", minSdk.toString())
+ buildConfigField("boolean", "IS_GOOGLE_PLAY", false.toString())
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@@ -45,6 +46,10 @@ android {
applicationIdSuffix = ".debug"
versionNameSuffix = "-debug"
}
+ create("googleplay") {
+ initWith(getByName("release"))
+ buildConfigField("boolean", "IS_GOOGLE_PLAY", true.toString())
+ }
}
lint {
disable.add("LongLogTag")