The barcode model is two thirds of a default tool's APK #177
Closed
jedbridges
started this conversation in
SDK
Replies: 1 comment
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Noticed this while trimming my own tool and it seems worth flagging, since it
affects everything built on the SDK.
:sdk:ui includes LightQrCodeScanner, which pulls in ML Kit's barcode model.
libbarhopper_v3.so is 19.3MB of a 29MB release APK — about two thirds of the
download — and it ships for four ABIs on a phone that's arm64 only.
My tool doesn't scan anything, so I excluded it:
That took the APK from 29MB to 8.5MB and native libs from 19.51MB to 233KB. I
went through every screen on a debug build and again on a minified release
build — no missing classes, no crashes.
Two questions. Is excluding it reasonable, or am I working around something I
shouldn't be? And would it make sense for the scanner to be opt-in, so tools
that don't scan don't carry the model?
All reactions