summaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle29
1 files changed, 6 insertions, 23 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 0a987f84..171cad02 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -46,6 +46,8 @@ android {
//This is the default donation URL and should be set to the donation page of LEAP
// and this should not be set/altered anywhere else.
buildConfigField 'String', 'default_donation_url', '"https://riseuplabs.org/leap"'
+ // custom donation url, only used in Custom flavor
+ buildConfigField 'String', 'donation_url', 'null'
//The field to enable donations in the app.
buildConfigField 'boolean', 'enable_donation', 'false'
//The field to enable donation reminder popup in the app if enable_donation is set to 'false' this will be disabled.
@@ -77,14 +79,6 @@ android {
buildConfigField 'boolean', 'actionbar_center_title', 'true'
buildConfigField 'boolean', 'actionbar_capitalize_title', 'true'
- //ignore the following configs, only used in custom flavor
- buildConfigField 'String', 'donation_url', 'null'
- buildConfigField "String", "customProviderUrl", '""'
- buildConfigField "String", "customProviderIp", '""'
- buildConfigField "String", "customProviderApiIp", '""'
- buildConfigField "String", "geoipUrl", '""'
- buildConfigField "String", "customProviderMotdUrl", '""'
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
dexOptions {
jumboMode true
@@ -130,25 +124,14 @@ android {
//**************************************************************************
//**************************************************************************
//Configurations for custom branded app.
-
+ //
+ //In order to configure the URLs for your custom provider (required!), please
+ //check out app/src/custom/README.md
+ //
//Change the package name as needed, e.g. "org.example.myapp"
applicationId "se.leap.riseupvpn"
//Set app name here
appName = "Riseup VPN"
- //Provider base url, e.g. '"https://example.com"'
- def customProviderUrl = '"https://black.riseup.net"'
- buildConfigField "String", "customProviderUrl", customProviderUrl
- //static ip address of provider, using a commercially validated CA certificate to serve the provider.json
- def customProviderIp = '""'
- buildConfigField "String", "customProviderIp", customProviderIp
- //static ip address of the provider api, using a self signed certificate to serve provider.json, eip-service.json etc.
- def customProviderApiIp = '""'
- buildConfigField "String", "customProviderApiIp", customProviderApiIp
- def geoipUrl = '"https://menshen.riseup.net/json"'
- buildConfigField "String", "geoipUrl", geoipUrl
- //URL for the message of the day, see https://0xacab.org/leap/motd#motd-message-of-the-day
- def customProviderMotdUrl = '"https://static.riseup.net/vpn/motd.json"'
- buildConfigField "String", "customProviderMotdUrl", customProviderMotdUrl
//Change the versionCode as needed
//versionCode 1
//Change the versionName as needed