From 521fd88670a82f6ab23f4be017fea0336e6b1b9a Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Tue, 11 Aug 2026 16:31:35 +0200 Subject: [PATCH] Split APK: Try to make Aurora/APKPure work Cost is a slightly larger APK for everyone. For https://github.com/opencloud-eu/android/issues/208 --- opencloudApp/build.gradle | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/opencloudApp/build.gradle b/opencloudApp/build.gradle index ab17823c0..0af6949b2 100644 --- a/opencloudApp/build.gradle +++ b/opencloudApp/build.gradle @@ -225,6 +225,24 @@ android { resources.excludes.add("META-INF/*") } + // Ship the App Bundle as a single self-contained APK instead of per-config splits. + // The app has no native libraries (0 ABI cost), uses vector drawables, and only a + // handful of small translated locales — measured overhead is ~0.5 MB (~4%). In return, + // Play and any mirror that re-hosts the Play artifact (Aurora, APKPure) deliver one + // complete APK, so sideloads can't crash with "missing splits / Google Play required" + // (see issue #208). Does not affect assembleRelease or the F-Droid build (already universal). + bundle { + language { + enableSplit = false + } + density { + enableSplit = false + } + abi { + enableSplit = false + } + } + namespace "eu.opencloud.android" testNamespace "eu.opencloud.android.test" }