build: slim arm64-only release APK (~53% smaller) + universal fallback - #331
Merged
Conversation
SMK1705
commented
Jul 29, 2026
Owner
…iversal fallback The published APK is ~199 MB, and 64% of it is native libs shipped for THREE ABIs. A real phone downloads x86_64 (64 MB, emulator/ChromeOS only) and armeabi-v7a (42 MB, old 32-bit ARM) it can never use — every phone since ~2019 is arm64-v8a. - build.gradle.kts: -PslimAbi narrows the packaged ABIs to arm64-v8a only. Default keeps all three, so the x86_64 emulator and 32-bit devices still work for local/CI testing; only the published/installed builds opt in. - release-apk.yml: build BOTH — a universal all-ABI APK (fallback) and the slim arm64 one, publishing the slim build at the stable taskmind-debug.apk URL (what modern phones use) and the universal as taskmind-universal-debug.apk. A non-arm64 device can't install an arm64-only APK (INSTALL_FAILED_NO_MATCHING_ABIS is a clean install-time refusal, not a crash), so the universal fallback keeps 32-bit ARM / x86 / emulators covered. - install-to-phone.yml: -PslimAbi (the paired phone is arm64) — less to build/transfer/install. Measured: taskmind-debug.apk 199 MB -> 92.8 MB (arm64-only, ~53% smaller). Device-verified on the Galaxy S25 (arm64): installs, SQLCipher decrypts the DB, and the MediaPipe neural embedder loads from lib/arm64-v8a and runs (tflite + XNNPACK) — no feature lost. CI (android.yml) still builds the default universal APK, so the multi-ABI path stays covered.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.