Cleaning the APK
-
I've been looking at minimizing the size of the shipped APK / AAB for the play store.
After unzipping the file and looking in the libs dir, I wonder about two things:
-
there are
libQt6Svg_arm64-v8a.so
,libplugins_iconengines_qsvgicon_arm64-v8a.so
andlibplugins_imageformats_qsvg_arm64-v8a.so
Are all really needed to have the ability to have svgs in a QML 'Image {}' element ? -
image:
What is "qmltooling" and why are they in my release build?
and naturally, is there any way to get rid of them and still be able to sign my APKs using the Qt tooling.
-
-
@TomZ said in Cleaning the APK:
Are all really needed to have the ability to have svgs in a QML 'Image {}' element ?
You can just try and see what happens if you remove one of them.
libplugins_imageformats_qsvg_arm64-v8a.so - is needed to be able to read SVG images
libQt6Svg_arm64-v8a.so - this is the Qt SVG module, probably not needed if you only want to show a SVG image
libplugins_iconengines_qsvgicon_arm64-v8a.so - not sure whether you need it, probably not
I doubt qmltooling needs to be in a final application build, but I'm not a QML expert.
-
@TomZ I guess these libQt6Svg_arm64-v8a.so, libplugins_iconengines_qsvgicon_arm64-v8a.so and libplugins_imageformats_qsvg_arm64-v8a.so will be needed if your app has any svg loading and display. But why do you have all the debugger sos? Are not you supposed to pack only release so files for deployment ?