summaryrefslogtreecommitdiffhomepage
path: root/ui/build.gradle
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-03-23 13:43:35 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2023-03-23 13:50:26 +0100
commit0fb78ba6fc16b00d0b375e49b2368be937745072 (patch)
tree4be4735babef9495e409691d98f18fa2e77c87c5 /ui/build.gradle
parentb44380c81a17efc6ed52c0ca65b3adf2cac5637e (diff)
ui: bring back donation button
For Google Play Store builds, we'll display an alert box. This was inspired by the discussion around StreetComplete; hopefully we'll have a similar okay outcome. Link: https://github.com/streetcomplete/streetcomplete/issues/3768 Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/build.gradle')
-rw-r--r--ui/build.gradle3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/build.gradle b/ui/build.gradle
index 2c2a3fa8..656ab28e 100644
--- a/ui/build.gradle
+++ b/ui/build.gradle
@@ -48,6 +48,9 @@ android {
}
}
buildTypes {
+ all {
+ buildConfigField("boolean", "IS_GOOGLE_PLAY", (System.getenv("WG_BUILD_FOR_GOOGLE_PLAY") == "true").toString())
+ }
release {
if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
minifyEnabled true