From 61ce9e028473aa8ef4fa014c1b53eabee4d90b20 Mon Sep 17 00:00:00 2001 From: Janak Amarasena Date: Tue, 5 Jun 2018 23:14:40 +0530 Subject: Added donation reminder configurations to custom flavor --- app/build.gradle | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'app/build.gradle') 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 { -- cgit v1.2.3