From f2b1653ea4bdb79692632db70d5b329e9c2109e0 Mon Sep 17 00:00:00 2001 From: sneurlax <sneurlax@gmail.com> Date: Mon, 22 Jul 2024 16:07:11 -0500 Subject: [PATCH] add macos camera permission TODO remove audio permission, currently required by plugin. see https://pub.dev/packages/camera_macos#setup --- macos/Runner/DebugProfile.entitlements | 4 ++++ macos/Runner/Info.plist | 4 ++++ macos/Runner/Release.entitlements | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements index c946719a1..3d2512f1e 100644 --- a/macos/Runner/DebugProfile.entitlements +++ b/macos/Runner/DebugProfile.entitlements @@ -10,5 +10,9 @@ <true/> <key>com.apple.security.network.client</key> <true/> + <key>com.apple.security.device.audio-input</key> + <true/> + <key>com.apple.security.device.camera</key> + <true/> </dict> </plist> diff --git a/macos/Runner/Info.plist b/macos/Runner/Info.plist index 4789daa6a..008e69ba5 100644 --- a/macos/Runner/Info.plist +++ b/macos/Runner/Info.plist @@ -28,5 +28,9 @@ <string>MainMenu</string> <key>NSPrincipalClass</key> <string>NSApplication</string> + <key>NSCameraUsageDescription</key> + <string>QR Code scanning</string> + <key>NSMicrophoneUsageDescription</key> + <string>QR Code Scanning. A temporary requirement due to limitations in the camera_macos package that are being worked on to remove the need for this permission.</string> </dict> </plist> diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements index 95f3da71e..4094a6367 100644 --- a/macos/Runner/Release.entitlements +++ b/macos/Runner/Release.entitlements @@ -8,5 +8,9 @@ <true/> <key>com.apple.security.network.server</key> <true/> + <key>com.apple.security.device.audio-input</key> + <true/> + <key>com.apple.security.device.camera</key> + <true/> </dict> </plist>