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

    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
              Vladimir Minenko Vladimir Minenko
              Votes:
              5 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes