f0a7d74e1d
When submitting applications to the iOS and macOS AppStore the application goes through static analysis, which will trigger on uses of various privacy protected APIs, unless the application has a corresponding usage description for the permission in the Info.plist file. This applies even if the application never requests the given permission, but just links to a Qt library that has the offending symbols or library dependencies. To ensure that the application does not have to add usage descriptions to their Info.plist for permissions they never plan to use we split up the various permission implementations into small static libraries that register with the Qt plugin mechanism as permission backends. We can then inspect the application's Info.plist at configure time and only add the relevant static permission libraries. Furthermore, since some permissions can be checked without any usage description, we allow the implementation to be split up into two separate translation units. By putting the request in its own translation unit we can selectively include it during linking by telling the linker to look for a special symbol. This is useful for libraries such as Qt Multimedia who would like to check the current permission status, but without needing to request any permission of its own. Done-with: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Change-Id: Ic2a43e1a0c45a91df6101020639f473ffd9454cc Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
60 lines
2.0 KiB
Plaintext
60 lines
2.0 KiB
Plaintext
<?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>LSMinimumSystemVersion</key>
|
|
<string>${CMAKE_OSX_DEPLOYMENT_TARGET}</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>NSSupportsAutomaticGraphicsSwitching</key>
|
|
<true/>
|
|
|
|
<key>NSBluetoothAlwaysUsageDescription</key>
|
|
<string>Testing BluetoothAlways</string>
|
|
<key>NSCalendarsUsageDescription</key>
|
|
<string>Testing Calendars</string>
|
|
<key>NSCameraUsageDescription</key>
|
|
<string>Testing Camera</string>
|
|
<key>NSContactsUsageDescription</key>
|
|
<string>Testing Contacts</string>
|
|
<key>NSHealthShareUsageDescription</key>
|
|
<string>Testing HealthShare</string>
|
|
<key>NSHealthUpdateUsageDescription</key>
|
|
<string>Testing HealthUpdate</string>
|
|
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
|
|
<string>Testing LocationAlwaysAndWhenInUse</string>
|
|
<key>NSLocationAlwaysUsageDescription</key>
|
|
<string>Testing LocationAlways</string>
|
|
<key>NSLocationWhenInUseUsageDescription</key>
|
|
<string>Testing LocationWhenInUse</string>
|
|
<key>NSMicrophoneUsageDescription</key>
|
|
<string>Testing Microphone</string>
|
|
|
|
</dict>
|
|
</plist>
|