summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorKalle Lindström <karl.lindstrom@mullvad.net>2025-04-15 10:53:30 +0200
committerKalle Lindström <karl.lindstrom@mullvad.net>2025-04-15 10:55:26 +0200
commitfc1a218f7d27a95b98f85511fd46628dbd8ef479 (patch)
tree882033756fa2dfd3163ce4bcecad72282192862d /android
parent8e56b08c722c3d04280a77a88749128582d50d1c (diff)
downloadmullvadvpn-fc1a218f7d27a95b98f85511fd46628dbd8ef479.tar.xz
mullvadvpn-fc1a218f7d27a95b98f85511fd46628dbd8ef479.zip
Add property flag to enable keep native symbols
The native symbols blows up the size of the APK by a lot, so we add a flag `KEEP_DEBUG_SYMBOLS` that must be set to `true` or else we strip the native lib symbols.
Diffstat (limited to 'android')
-rw-r--r--android/app/build.gradle.kts10
1 files changed, 9 insertions, 1 deletions
diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts
index 7f411e2a07..290cb0a0e5 100644
--- a/android/app/build.gradle.kts
+++ b/android/app/build.gradle.kts
@@ -88,7 +88,15 @@ android {
"proguard-rules.pro",
)
}
- getByName(BuildTypes.DEBUG) { packaging { jniLibs.keepDebugSymbols.add("**/*.so") } }
+ getByName(BuildTypes.DEBUG) {
+ if (
+ gradleLocalProperties(rootProject.projectDir, providers)
+ .getProperty("KEEP_DEBUG_SYMBOLS")
+ .toBoolean()
+ ) {
+ packaging { jniLibs.keepDebugSymbols.add("**/*.so") }
+ }
+ }
create(BuildTypes.FDROID) {
initWith(buildTypes.getByName(BuildTypes.RELEASE))
signingConfig = null