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

Allow sdk version specific QT_ANDROID_PERMISSIONS and QT_ANDROID_BUNDLED_JAR_DEPENDENCIES values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.4
    • None
    • Android

    Description

      Some Android permissions can be set to specific sdk version range, that is supported by Android, but Qt build system doesn't have an official way for setting that. Atm, it's possible to achieve that by:

       

      set_property(TARGET target_name PROPERTY QT_ANDROID_PERMISSIONS 
          permission.string android:maxSdkVersion='integer'
      )
      

      To get:

      <uses-permission android:name="string" android:maxSdkVersion='integer' />
      

      However, if double quotes are used (that's the official quote type used), it not work because the permission string will be wrongly parsed.

       

      That's one side, the other one is about QT_ANDROID_BUNDLED_JAR_DEPENDENCIES which atm doesn't have a way to get jar dependencies based on the sdk version, this although being a corner case, it can be useful when having different implementations or java classes based on the sdk version.

       

      Attachments

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

        Activity

          People

            qtandroidteam Qt Android Team
            assam Assam Boudjelthia
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes