From e8683b41819249e0b551fadd5273cabb1bf36df2 Mon Sep 17 00:00:00 2001
From: Moustapha Kodjo Amadou <107993382+kodjodevf@users.noreply.github.com>
Date: Fri, 23 Jan 2026 14:39:45 +0100
Subject: [PATCH] feat: update entitlements and plist for file access
permissions
---
ios/Runner/Info.plist | 4 ++++
macos/Runner/DebugProfile.entitlements | 2 ++
macos/Runner/Info.plist | 4 ++++
macos/Runner/Release.entitlements | 4 ++++
4 files changed, 14 insertions(+)
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index ed2cfaee..cececc93 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -7,6 +7,10 @@
NSAllowsArbitraryLoads
+ NSPhotoLibraryUsageDescription
+ Mangayomi needs access to your photo library to save and restore backups.
+ NSDocumentUsageDescription
+ Mangayomi needs access to your files to create and restore backups.
CADisableMinimumFrameDurationOnPhone
CFBundleDevelopmentRegion
diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements
index 1a402e6a..bb5d4c73 100644
--- a/macos/Runner/DebugProfile.entitlements
+++ b/macos/Runner/DebugProfile.entitlements
@@ -14,5 +14,7 @@
com.apple.security.files.user-selected.read-only
+ com.apple.security.files.user-selected.read-write
+
diff --git a/macos/Runner/Info.plist b/macos/Runner/Info.plist
index 49b742eb..2c4d1e85 100644
--- a/macos/Runner/Info.plist
+++ b/macos/Runner/Info.plist
@@ -7,6 +7,10 @@
NSAllowsArbitraryLoads
+ NSDocumentUsageDescription
+ Mangayomi needs access to your files to create and restore backups.
+ NSDownloadsFolderUsageDescription
+ Mangayomi needs access to Downloads folder to save backups.
CFBundleDevelopmentRegion
$(DEVELOPMENT_LANGUAGE)
CFBundleExecutable
diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements
index 92a5c727..9408d95d 100644
--- a/macos/Runner/Release.entitlements
+++ b/macos/Runner/Release.entitlements
@@ -10,5 +10,9 @@
com.apple.security.files.user-selected.read-only
+ com.apple.security.files.user-selected.read-write
+
+ com.apple.security.files.downloads.read-write
+