Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77172

Make androiddeployqt respect gradle's productFlavors options, which lead to failure of zipalign invokation

    XMLWordPrintable

Details

    • Android
    • 2023wk12FOQtforAndroid, 2023wk14FOQtforAndroid, 2023wk16FOQtforAndroid, 2023wk18FOQtforAndroid, 2024wk4Xs3FOQtforAndroid

    Description

      Consider the following productFlavors in build.gradle:

       

      flavorDimensions "abi"
      productFlavors {
          armv7 {
              dimension "abi"
              versionCode versionProps['VERSION_CODE'].toInteger() * 100 + 7
          }
          armv8 {
              dimension "abi"
              versionCode versionProps['VERSION_CODE'].toInteger() * 100 + 8
          }
      }
      

       

      The generated apks have the following name format:
      android-build/build/outputs/apk/armv8/android-build-armv8-release-unsigned.apk
      android-build/build/outputs/apk/armv7/android-build-armv7-release-unsigned.apk
      androiddeployqt tool expects apk with name android-build-release-unsigned.apk

      The same happens if to use splits:

      splits {
          abi {
              enable true;
              reset();
              include "armeabi-v7a";
              universalApk false;
          }
      }

      I think it should be good if androiddeployqt tool respects productFlavors, so that zipalign tool would be able to proceed

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rampe Rami Potinkara
              rightaway717 Ivan Belyakov
              Bruno Vunderl Bruno Vunderl
              Votes:
              5 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes