From 71d1c34319b703d909c882c24a436cd74ed42cc0 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 30 May 2022 23:45:34 +0200 Subject: implement a build time config variable to prefer obfsvpn lib over shapeshifter lib --- app/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index 5c804d75..f788f590 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -43,6 +43,8 @@ android { buildConfigField 'boolean', 'allow_manual_gateway_selection', 'true' // grey out background in EipFragment (main screen) if VPN is not running buildConfigField 'boolean', 'use_color_filter', 'true' + // decide if we use obfsvpn or shapeshifter as obfs4 lib + buildConfigField 'boolean', 'use_obfsvpn', 'true' // static update url pointing to the latest stable release apk buildConfigField "String", "update_apk_url", '"https://dl.bitmask.net/client/android/Bitmask-Android-latest.apk"' @@ -133,6 +135,8 @@ android { buildConfigField 'boolean', 'allow_manual_gateway_selection', 'true' // grey out background in EipFragment (main screen) if VPN is not running buildConfigField 'boolean', 'use_color_filter', 'false' + // decide if we use obfsvpn or shapeshifter as obfs4 lib + buildConfigField 'boolean', 'use_obfsvpn', 'true' //Build Config Fields for automatic apk update checks -- cgit v1.2.3 From 38e9d4afbd408b25d569e5c80cd0b288a28acd07 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 26 Jun 2022 19:41:04 +0200 Subject: add BuildConfig fields to hardcode a particular obfsvpn proxy --- app/build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index f788f590..73dfcc0c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -45,6 +45,11 @@ android { buildConfigField 'boolean', 'use_color_filter', 'true' // decide if we use obfsvpn or shapeshifter as obfs4 lib buildConfigField 'boolean', 'use_obfsvpn', 'true' + // obfsvpn Debugging config fields to pin and configure a particular proxy + buildConfigField 'boolean', 'obfsvpn_pinning', 'false' + buildConfigField "String", "obfsvpn_port", '""' + buildConfigField "String", "obfsvpn_ip", '""' + buildConfigField "String", "obfsvpn_cert", '""' // static update url pointing to the latest stable release apk buildConfigField "String", "update_apk_url", '"https://dl.bitmask.net/client/android/Bitmask-Android-latest.apk"' @@ -137,6 +142,11 @@ android { buildConfigField 'boolean', 'use_color_filter', 'false' // decide if we use obfsvpn or shapeshifter as obfs4 lib buildConfigField 'boolean', 'use_obfsvpn', 'true' + // obfsvpn Debugging config fields to pin and configure a particular proxy + buildConfigField 'boolean', 'obfsvpn_pinning', 'false' + buildConfigField "String", "obfsvpn_port", '""' + buildConfigField "String", "obfsvpn_ip", '""' + buildConfigField "String", "obfsvpn_cert", '""' //Build Config Fields for automatic apk update checks -- cgit v1.2.3 From 5afdb3d3ed61efd547b3756e5c1c4f119e126500 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 27 Jun 2022 23:06:09 +0200 Subject: allow to pin a custom obfs4 bridge during compile time --- app/build.gradle | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index 73dfcc0c..3e4f4ee2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -50,6 +50,7 @@ android { buildConfigField "String", "obfsvpn_port", '""' buildConfigField "String", "obfsvpn_ip", '""' buildConfigField "String", "obfsvpn_cert", '""' + buildConfigField 'boolean', 'obfsvpn_use_kcp', 'false' // static update url pointing to the latest stable release apk buildConfigField "String", "update_apk_url", '"https://dl.bitmask.net/client/android/Bitmask-Android-latest.apk"' @@ -147,6 +148,7 @@ android { buildConfigField "String", "obfsvpn_port", '""' buildConfigField "String", "obfsvpn_ip", '""' buildConfigField "String", "obfsvpn_cert", '""' + buildConfigField 'boolean', 'obfsvpn_use_kcp', 'false' //Build Config Fields for automatic apk update checks -- cgit v1.2.3