diff options
author | Janak Amarasena <janakamarasena@gmail.com> | 2018-06-05 23:14:40 +0530 |
---|---|---|
committer | Janak Amarasena <janakamarasena@gmail.com> | 2018-06-23 09:33:02 +0530 |
commit | 61ce9e028473aa8ef4fa014c1b53eabee4d90b20 (patch) | |
tree | ea4ea91bb62f5cde9a6057d5d888fdd6dca4e880 | |
parent | 55c3972e9ac0796a801c64788eb364cbd0c9cf02 (diff) |
Added donation reminder configurations to custom flavor
-rw-r--r-- | app/build.gradle | 20 | ||||
-rw-r--r-- | app/src/custom/res/values/strings.xml | 4 |
2 files changed, 23 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 { diff --git a/app/src/custom/res/values/strings.xml b/app/src/custom/res/values/strings.xml new file mode 100644 index 00000000..b923b42b --- /dev/null +++ b/app/src/custom/res/values/strings.xml @@ -0,0 +1,4 @@ +<?xml version='1.0' encoding='UTF-8'?> +<resources> + <string name="donate_message">Please donate today if you value secure communication that is easy for both the end-user and the service provider.</string> +</resources> |