summaryrefslogtreecommitdiffhomepage
path: root/android/app
diff options
context:
space:
mode:
Diffstat (limited to 'android/app')
-rw-r--r--android/app/build.gradle.kts11
1 files changed, 9 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 {