Skip to content

Commit 9f4f830

Browse files
committed
Fix: Add NSPhotoLibraryUsageDescription for macos
1 parent 2c84e9a commit 9f4f830

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related

macos/Runner/AppDelegate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ class AppDelegate: FlutterAppDelegate {
66
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
77
return true
88
}
9+
10+
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
11+
return true
12+
}
913
}

macos/Runner/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
<string>NSApplication</string>
3333
<key>ITSAppUsesNonExemptEncryption</key>
3434
<false/>
35+
<key>NSCameraUsageDescription</key>
36+
<string>Take photos to add to your notes</string>
37+
<key>NSPhotoLibraryUsageDescription</key>
38+
<string>Include your photos in your notes</string>
3539
<key>CFBundleLocalizations</key>
3640
<array>
3741
<string>en</string>

0 commit comments

Comments
 (0)