docs: guide for single-arch Android APKs (shorebirdtech/shorebird#3402) - #653
Conversation
Document --target-platform on shorebird release android so a single-ABI APK can be built. Gradle NDK ABI filters alone do not restrict the architectures Shorebird uploads. Also document get-apks --no-universal for per-ABI APKs.
|
Thanks for writing this up — the flag details ( One claim looks stale, though. In
This describes the pre-fix behavior. // Track which arch paths AGP didn't produce, so we can surface them at
// the end if zero archs uploaded. AGP omits an arch directory whenever
// the project filters it out via `ndk.abiFilters`, `splits.abi`, or
// `jniLibs.excludes`. Iterating only over present files lets a filtered
// release succeed instead of crashing on the first missing arch
// (https://github.com/shorebirdtech/shorebird/issues/3388).It only errors if zero architectures are found for upload. Same pattern in So today: a Gradle-filtered ABI that's still in |
AbhishekDoshi26
left a comment
There was a problem hiding this comment.
Small change, rest looks good. Thanks!
Missing arch dirs are skipped, not a release failure. Use --target-platform to declare intent; a mismatched filter is silent.
|
You're right — that was the old behavior, before #3388. I updated the Gradle filter note in |
AbhishekDoshi26
left a comment
There was a problem hiding this comment.
LGTM — fixed a Prettier formatting issue on release.mdx.
I added a short guide for building a single-arch Android APK with Shorebird.
shorebird release android --artifact apk --target-platform android-arm64has to go before--. Gradle NDK ABI filters alone still make Shorebird look for every default architecture.Also documented
shorebird releases get-apks --no-universalso you get per-ABI APKs instead of onlyuniversal.apk.shorebirdtech/shorebird#3402
Fixes #470