diff options
Diffstat (limited to 'android')
| -rw-r--r-- | android/app/build.gradle.kts | 11 | ||||
| -rw-r--r-- | android/gradle.properties | 3 |
2 files changed, 12 insertions, 2 deletions
diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 0dfc4d9236..a628476cb6 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -247,6 +247,7 @@ junitPlatform { cargo { val isReleaseBuild = isReleaseBuild() + val enableBoringTun = getBooleanProperty("mullvad.app.build.boringtun.enable") val enableApiOverride = !isReleaseBuild || isDevBuild() || isAlphaBuild() module = repoRootPath libname = "mullvad-jni" @@ -262,9 +263,15 @@ cargo { prebuiltToolchains = true targetDirectory = "$repoRootPath/target" features { - if (enableApiOverride) { - defaultAnd(arrayOf("api-override")) + val enabledFeatures = buildList { + if (enableApiOverride) { + add("api-override") + } + if (enableBoringTun) { + add("boringtun") + } } + defaultAnd(enabledFeatures.toTypedArray()) } targetIncludes = arrayOf("libmullvad_jni.so") extraCargoBuildArguments = buildList { diff --git a/android/gradle.properties b/android/gradle.properties index 07b1de2faf..22dc06c43c 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -33,6 +33,9 @@ mullvad.app.build.cargo.cleanBuild=true # to be substantially larger. mullvad.app.build.keepDebugSymbols=false +# Enable/Disable boringtun +mullvad.app.build.boringtun.enable=false + ## E2E tests ## # To run e2e tests you need to provide credentails for the enviroment you |
