summaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2020-01-23 00:40:39 -0600
committercyberta <cyberta@riseup.net>2020-01-23 00:40:39 -0600
commit9109fb9d54f99958cce6bc0b2ffa63f83a43a101 (patch)
treee456e268b3da4a2c4609153e38b050b24d75016c /app/build.gradle
parentdb12765763840d9202b39afd1f69ea0e62925dac (diff)
implement BuildConfig constants for custom branded clients to preseed IPs
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 68db8926..286ddc1c 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -37,8 +37,10 @@ android {
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
+ //ignore the following configs, only used in custom flavor
buildConfigField "String", "customProviderUrl", '""'
+ buildConfigField "String", "customProviderIp", '""'
+ buildConfigField "String", "customProviderApiIp", '""'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
dexOptions {
@@ -89,6 +91,12 @@ android {
//Provider base url, e.g. '"https://example.com"'
def customProviderUrl = '"https://riseup.net"'
buildConfigField "String", "customProviderUrl", customProviderUrl
+ //static ip address of provider, using a commercially validated CA certificate to serve the provider.json
+ def customProviderIp = '"198.252.153.70"'
+ 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 = '"198.252.153.107"'
+ buildConfigField "String", "customProviderApiIp", customProviderApiIp
//Change the versionCode as needed
//versionCode 1
//Change the versionName as needed