From 064af4657dd07b6cf3629d13eae8e6aa86107f02 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Mon, 17 Jul 2023 21:02:58 +0200 Subject: [PATCH] Enable legacy packaging to preserve syncthing libs (fixes #1943) --- app/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 281dcd94a..c31f32a56 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -70,6 +70,14 @@ android { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } + + // Otherwise libsyncthing.so doesn't appear where it should in installs + // based on app bundles, and thus nothing works. + packagingOptions { + jniLibs { + useLegacyPackaging = true + } + } } play {