summaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle35
1 files changed, 29 insertions, 6 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 53af1aff..b7522e07 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -11,10 +11,13 @@ android {
defaultConfig {
applicationId "se.leap.bitmaskclient"
+ versionCode 134
+ versionName "0.9.8"
resValue "string", "app_name", appName
vectorDrawables.useSupportLibrary = true
buildConfigField 'boolean', 'openvpn3', 'false'
+
//Build Config Fields for default donation details
//This is the default donation URL and should be set to the donation page of LEAP
@@ -28,6 +31,11 @@ android {
buildConfigField 'boolean', 'enable_donation_reminder', 'true'
//The duration in days to trigger the donation reminder
buildConfigField 'int', 'donation_reminder_duration', '30'
+ //skip the account creation / login screen if the provider offers anonymous vpn usage, use directly the anonymous cert instead
+ buildConfigField 'boolean', 'priotize_anonymous_usage', 'false'
+ //ignore the following config, only used in custom flavor
+ buildConfigField "String", "customProviderUrl", '""'
+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
dexOptions {
jumboMode true
@@ -44,7 +52,7 @@ android {
}
}
- flavorDimensions "mode","implementation"
+ flavorDimensions "branding", "implementation"
productFlavors {
production {
dimension "implementation"
@@ -53,21 +61,33 @@ android {
dimension "implementation"
}
normal {
- dimension "mode"
+ dimension "branding"
}
- //Configurations for custom branded app.
+
+
custom {
- dimension "mode"
+ dimension "branding"
+
+ //**************************************************************************
+ //**************************************************************************
+ //Configurations for custom branded app.
+
//Change the package name as needed
- applicationId "org.sample.custom"
+ applicationId "net.riseup.black"
//Set app name here
- appName = "Custom"
+ appName = "Riseup VPN"
resValue "string", "app_name", appName
+ //Provider base url, e.g. '"https://example.com"'
+ def customProviderUrl = '"https://riseup.net"'
+ buildConfigField "String", "customProviderUrl", customProviderUrl
//Change the versionCode as needed
versionCode 1
//Change the versionName as needed
versionName "1.0"
+ //skip the account creation / login screen if the provider offers anonymous vpn usage, use directly the anonymous cert instead
+ buildConfigField 'boolean', 'priotize_anonymous_usage', 'true'
+
//Build Config Fields for default donation details
//This is the donation URL and should be set to the relevant donation page.
@@ -79,6 +99,9 @@ android {
//The duration in days to trigger the donation reminder
buildConfigField 'int', 'donation_reminder_duration', '30'
+ //**************************************************************************
+ //**************************************************************************
+
}
}