From a62d5edfdd99aca68f1507b2e4284fe6d94ef868 Mon Sep 17 00:00:00 2001 From: Jason Ross Date: Fri, 3 Jul 2026 10:46:34 -0500 Subject: [PATCH] build(release): build the release APK for ARM only (arm64-v8a + armeabi-v7a) Adds ndk.abiFilters = ["arm64-v8a", "armeabi-v7a"] to the release build type only, so the release APK/AAB ship the two ARM ABIs (64-bit + 32-bit) instead of a universal build. x86 and x86_64 are intentionally dropped. defaultConfig and the debug type are left untouched: CI's E2E matrix runs the debug build on x86_64 emulators and needs the x86_64 native libs (incl. libsqlcipher.so). Co-Authored-By: Claude Opus 4.8 --- app/build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 5c0e84e..21858a5 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -88,6 +88,14 @@ android { } else { signingConfigs.getByName("debug") } + // Ship ARM only — arm64-v8a (64-bit) + armeabi-v7a (32-bit); x86/x86_64 are + // intentionally dropped. Scoped to this build type ONLY — do NOT move to defaultConfig + // or the debug type: CI's E2E matrix runs the debug build on x86_64 emulators + // (.github/workflows/ci.yml) and needs the x86_64 native libs (incl. libsqlcipher.so). + // See docs/play-compliance.md and docs/fdroid-compliance.md for the coverage tradeoff. + ndk { + abiFilters += listOf("arm64-v8a", "armeabi-v7a") + } } } -- 2.47.3