summaryrefslogtreecommitdiffstats
path: root/examples/multimediawidgets/camera/ios
diff options
context:
space:
mode:
authorDoris Verria <doris.verria@qt.io>2021-10-26 15:51:21 +0200
committerDoris Verria <doris.verria@qt.io>2021-10-28 10:25:00 +0200
commit67fe9e4106616383ede02741cfceaec12ee1b648 (patch)
treebc7f8c035872d82b7381899a296ac925a9ea4440 /examples/multimediawidgets/camera/ios
parentf98d01cdfc968396816f1c42121f5f449ee17256 (diff)
Camera example: Fix .plist file to build in iOS/macOS with qmake and cmake
- Fix format error in .plist.in file which was causing the permission dialog to not show up. - Provide separate .plist.in files for iOS and macOS so we can set needed keys specific to the platforms. - For qmake builds, fix the shared.pri to provide an INFOPLIST dictionary for macOS. The provided one has iOS specific keys. Fixes: QTBUG-97408 Pick-to: 6.2 Change-Id: Idd8e00c91b935328352cc513f419205303d9356d Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/multimediawidgets/camera/ios')
-rw-r--r--examples/multimediawidgets/camera/ios/Info.plist.in50
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/multimediawidgets/camera/ios/Info.plist.in b/examples/multimediawidgets/camera/ios/Info.plist.in
new file mode 100644
index 000000000..6a6b8db11
--- /dev/null
+++ b/examples/multimediawidgets/camera/ios/Info.plist.in
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+
+ <key>CFBundleName</key>
+ <string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
+ <key>CFBundleExecutable</key>
+ <string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
+
+ <key>CFBundleVersion</key>
+ <string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
+ <key>CFBundleShortVersionString</key>
+ <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
+
+ <key>CFBundleGetInfoString</key>
+ <string>${MACOSX_BUNDLE_INFO_STRING}</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>${MACOSX_BUNDLE_COPYRIGHT}</string>
+
+ <key>CFBundleIconFile</key>
+ <string>${MACOSX_BUNDLE_ICON_FILE}</string>
+
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+
+ <key>NSCameraUsageDescription</key>
+ <string>Qt Multimedia Example</string>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>Qt Multimedia Example</string>
+</dict>
+</plist>
+