Refactor to eliminate hardcoded identifiers
Read package identifier and app group ID from Info.plist at runtime via AppConfiguration. This enables SFM.System to use TeamID-prefixed app group format required by macOS Sequoia, fixing the privacy prompt when accessing app group data.
This commit is contained in:
@@ -85,7 +85,7 @@ class ApplicationDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCe
|
||||
@available(iOS 16.0, *)
|
||||
private nonisolated func registerFileProviderDomain() {
|
||||
let domain = NSFileProviderDomain(
|
||||
identifier: NSFileProviderDomainIdentifier("io.nekohasekai.sfavt.workingdir"),
|
||||
identifier: NSFileProviderDomainIdentifier(AppConfiguration.fileProviderDomainID),
|
||||
displayName: "sing-box"
|
||||
)
|
||||
NSFileProviderManager.add(domain) { error in
|
||||
|
||||
Reference in New Issue
Block a user