summaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorJanak Amarasena <janakamarasena@gmail.com>2018-06-05 23:14:40 +0530
committerJanak Amarasena <janakamarasena@gmail.com>2018-06-23 09:33:02 +0530
commit61ce9e028473aa8ef4fa014c1b53eabee4d90b20 (patch)
treeea4ea91bb62f5cde9a6057d5d888fdd6dca4e880 /app/build.gradle
parent55c3972e9ac0796a801c64788eb364cbd0c9cf02 (diff)
Added donation reminder configurations to custom flavor
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle20
1 files changed, 19 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 09858cd2..fea71f6e 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -42,7 +42,7 @@ android {
}
}
- flavorDimensions "implementation"
+ flavorDimensions "mode","implementation"
productFlavors {
production {
dimension "implementation"
@@ -50,6 +50,24 @@ android {
insecure {
dimension "implementation"
}
+ dafualt {
+ dimension "mode"
+ }
+ custom {
+ dimension "mode"
+
+ //Build Config Fields for default donation details
+
+ //This is the donation URL and should be set to the relevant donation page.
+ buildConfigField 'String', 'donation_url', '"https://leap.se/en/about-us/donate"'
+ //The field to enable donations in the app.
+ buildConfigField 'boolean', 'enable_donation', 'true'
+ //The field to enable donation reminder popup in the app if enable_donation is set to 'false' this will be disabled.
+ buildConfigField 'boolean', 'enable_donation_reminder', 'true'
+ //The duration in days to trigger the donation reminder
+ buildConfigField 'int', 'donation_reminder_duration', '30'
+
+ }
}
buildTypes {