From 39b87848ab20c585177a75b5adc069b5bf8cb4e2 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 arm64-v8a only Adds ndk.abiFilters = ["arm64-v8a"] to the release build type only, so the release APK/AAB ship a single ABI instead of a universal build with armeabi-v7a, x86, and x86_64. 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..65b6734 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -88,6 +88,14 @@ android { } else { signingConfigs.getByName("debug") } + // Ship arm64-v8a only (issue: release-arm64-only). 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 ABI-coverage tradeoff this drops (armeabi-v7a / x86 / x86_64 devices). + ndk { + abiFilters += "arm64-v8a" + } } } -- 2.47.3