Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cleaning the APK
Qt 6.11 is out! See what's new in the release blog

Cleaning the APK

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • TomZT Offline
    TomZT Offline
    TomZ
    wrote on last edited by TomZ
    #1

    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 and libplugins_imageformats_qsvg_arm64-v8a.so
      Are all really needed to have the ability to have svgs in a QML 'Image {}' element ?

    • image:
      Screenshot_20231106_142746.png
      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.

    jsulmJ JoeCFDJ 2 Replies Last reply
    0
    • TomZT TomZ

      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 and libplugins_imageformats_qsvg_arm64-v8a.so
        Are all really needed to have the ability to have svgs in a QML 'Image {}' element ?

      • image:
        Screenshot_20231106_142746.png
        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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • TomZT TomZ

        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 and libplugins_imageformats_qsvg_arm64-v8a.so
          Are all really needed to have the ability to have svgs in a QML 'Image {}' element ?

        • image:
          Screenshot_20231106_142746.png
          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.

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        @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 ?

        TomZT 1 Reply Last reply
        0
        • JoeCFDJ JoeCFD

          @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 ?

          TomZT Offline
          TomZT Offline
          TomZ
          wrote on last edited by
          #4

          @JoeCFD indeed, that was the question I had too.

          I ended up reporting it and it is indeed a bug;

          https://bugreports.qt.io/browse/QTBUG-118829

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved