diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2021-09-07 12:27:41 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2021-10-29 13:24:46 +0200 |
commit | 17b6f09eb4bf024ced0a0fa3e5bb918f739e2ebf (patch) | |
tree | 0a1a8b72e069b41f5d559161d53bc9e05239f8fe /examples/bluetooth/heartrate-game | |
parent | 0f715bf740a5a3f531c7e0d59be1c00a2a08129f (diff) |
Heart-rate example: add a proper Info.plist
Apple (iOS) requires a "proper" Info.plist entries, explaining _why_
we want to use Bluetooth on this particular device. So, let's add it.
Both the server and game apps need it.
Task-number: QTBUG-93991
Change-Id: I09133c6714f30bc402049cd40969a9b9644a0b4f
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
(cherry picked from commit 0e836b5a8b6d7c659a9540e2718918f8cfc28279)
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'examples/bluetooth/heartrate-game')
-rw-r--r-- | examples/bluetooth/heartrate-game/Info.plist | 41 | ||||
-rw-r--r-- | examples/bluetooth/heartrate-game/heartrate-game.pro | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/examples/bluetooth/heartrate-game/Info.plist b/examples/bluetooth/heartrate-game/Info.plist new file mode 100644 index 00000000..89820408 --- /dev/null +++ b/examples/bluetooth/heartrate-game/Info.plist @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDisplayName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIconFile</key> + <string>${ASSETCATALOG_COMPILER_APPICON_NAME}</string> + <key>CFBundleIdentifier</key> + <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> + <key>CFBundleName</key> + <string>${PRODUCT_NAME}</string> + <key>CFBundlePackageType</key> + <string>APPL</string> + <key>CFBundleShortVersionString</key> + <string>${QMAKE_SHORT_VERSION}</string> + <key>CFBundleSignature</key> + <string>${QMAKE_PKGINFO_TYPEINFO}</string> + <key>CFBundleVersion</key> + <string>${QMAKE_FULL_VERSION}</string> + <key>LSRequiresIPhoneOS</key> + <true/> + <key>MinimumOSVersion</key> + <string>${IPHONEOS_DEPLOYMENT_TARGET}</string> + <key>NSBluetoothAlwaysUsageDescription</key> + <string>Qt's Heartrate-game needs Bluetooth LE</string> + <key>NSBluetoothPeripheralUsageDescription</key> + <string>Qt's Heartrate-game needs Bluetooth LE</string> + <key>UILaunchStoryboardName</key> + <string>LaunchScreen</string> + <key>UISupportedInterfaceOrientations</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationPortraitUpsideDown</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> +</dict> +</plist> diff --git a/examples/bluetooth/heartrate-game/heartrate-game.pro b/examples/bluetooth/heartrate-game/heartrate-game.pro index fcec0bd2..a0827d89 100644 --- a/examples/bluetooth/heartrate-game/heartrate-game.pro +++ b/examples/bluetooth/heartrate-game/heartrate-game.pro @@ -19,6 +19,8 @@ SOURCES += main.cpp \ devicehandler.cpp \ bluetoothbaseclass.cpp +ios: QMAKE_INFO_PLIST = Info.plist + RESOURCES += qml.qrc \ images.qrc |