A cross platform Audiobookshelf client for Android and iOS
Dart
Remove iOS entitlement runtime diagnostic
Barnabas4e0318baa3e8
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swiftindex fbfc18af..6f5fc712 100644--- a/ios/Runner/AppDelegate.swift+++ b/ios/Runner/AppDelegate.swift@@ -2,7 +2,6 @@ import Flutterimport UIKitimport AVFoundationimport MediaPlayer-import Securityimport just_audiolet flutterEngine = FlutterEngine(name: "SharedEngine", project: nil, allowHeadlessExecution: true)@@ -42,10 +41,6 @@ let flutterEngine = FlutterEngine(name: "SharedEngine", project: nil, allowHeadl// Register platform channels on the shared engineregisterPlatformChannels()- // Entitlement diagnostic: must run AFTER registerPlatformChannels so the- // widget channel is available to forward logs into the Flutter LogService.- logAppGroupEntitlement()-return super.application(application, didFinishLaunchingWithOptions: launchOptions)}@@ -96,28 +91,6 @@ let flutterEngine = FlutterEngine(name: "SharedEngine", project: nil, allowHeadlNSLog("[WidgetDebug] AppDelegate registered %d Darwin notification observers", names.count)}- /// Reads the actual runtime-effective entitlements from the app's code- /// signature. If the App Group is listed here, the provisioning profile- /// granted it. If not, the entitlements file is asking for something the- /// profile doesn't provide - containerURL will return nil and the widget- /// extension won't see shared UserDefaults writes.- private func logAppGroupEntitlement() {- guard let task = SecTaskCreateFromSelf(nil) else {- logToFlutter("entitlements: SecTaskCreateFromSelf returned nil")- return- }- let key = "com.apple.security.application-groups" as CFString- var error: Unmanaged<CFError>?- let value = SecTaskCopyValueForEntitlement(task, key, &error)- if let groups = value as? [String] {- logToFlutter("entitlements: application-groups granted by profile = [\(groups.joined(separator: ", "))]")- } else if let err = error?.takeRetainedValue() {- logToFlutter("entitlements: error reading application-groups: \(err)")- } else {- logToFlutter("entitlements: application-groups = <none> - provisioning profile does not grant any App Group (containerURL will be nil)")- }- }-private func registerPlatformChannels() {let messenger = flutterEngine.binaryMessengerdiff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.hindex 0fe12831..308a2a56 100644--- a/ios/Runner/Runner-Bridging-Header.h+++ b/ios/Runner/Runner-Bridging-Header.h@@ -1,2 +1 @@#import "GeneratedPluginRegistrant.h"-#import <Security/SecTask.h>