Skip to content

build: slim arm64-only release APK (~53% smaller) + universal fallback - #331

Merged
SMK1705 merged 1 commit into
mainfrom
perf/slim-abi-release
Jul 29, 2026
Merged

build: slim arm64-only release APK (~53% smaller) + universal fallback#331
SMK1705 merged 1 commit into
mainfrom
perf/slim-abi-release

Conversation

@SMK1705

@SMK1705 SMK1705 commented Jul 29, 2026

Copy link
Copy Markdown
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.
@SMK1705 SMK1705 self-assigned this Jul 29, 2026
@SMK1705
SMK1705 merged commit af9bade into main Jul 29, 2026
1 check passed
@SMK1705
SMK1705 deleted the perf/slim-abi-release branch July 29, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant