androiddeployqt: always declare features as unrequired.
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 20 Feb 2014 15:59:19 +0000 (16:59 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 21 Feb 2014 13:39:56 +0000 (14:39 +0100)
Features declared by Qt modules are not necessarily used by
an app, so we mark them as unrequired. It's the responsibility
of the developer to mark them as required if needed.

Task-number: QTBUG-36921
Change-Id: Id0de248347d49c119bc9a1c37f4d0882065a1601
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/androiddeployqt/main.cpp

index c9e7afd..058cdd2 100644 (file)
@@ -895,7 +895,7 @@ bool updateAndroidManifest(Options &options)
 
     QString features;
     foreach (QString feature, options.features)
-        features += QString::fromLatin1("    <uses-feature android:name=\"%1\" />\n").arg(feature);
+        features += QStringLiteral("    <uses-feature android:name=\"%1\" android:required=\"false\" />\n").arg(feature);
     if (usesGL)
         features += QStringLiteral("    <uses-feature android:glEsVersion=\"0x00020000\" android:required=\"true\" />");