Skip to content

Commit 9cd624f

Browse files
committed
Fix Package.swift: remove unnecessary framework dependencies
- Only link UIKit and Foundation as base requirements - Remove optional framework dependencies (CoreBluetooth, CoreLocation, etc.) - Consumer apps should link frameworks based on permissions they actually use - Prevents forcing unnecessary framework dependencies on all users
1 parent 190ad08 commit 9cd624f

File tree

1 file changed

+1
-12
lines changed
  • permission_handler_apple/ios/permission_handler_apple

1 file changed

+1
-12
lines changed

permission_handler_apple/ios/permission_handler_apple/Package.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,7 @@ let package = Package(
3131
],
3232
linkerSettings: [
3333
.linkedFramework("UIKit", .when(platforms: [.iOS])),
34-
.linkedFramework("Foundation"),
35-
.linkedFramework("CoreBluetooth", .when(platforms: [.iOS])),
36-
.linkedFramework("CoreLocation", .when(platforms: [.iOS])),
37-
.linkedFramework("EventKit", .when(platforms: [.iOS])),
38-
.linkedFramework("Photos", .when(platforms: [.iOS])),
39-
.linkedFramework("Contacts", .when(platforms: [.iOS])),
40-
.linkedFramework("AVFoundation", .when(platforms: [.iOS])),
41-
.linkedFramework("MediaPlayer", .when(platforms: [.iOS])),
42-
.linkedFramework("Speech", .when(platforms: [.iOS])),
43-
.linkedFramework("CoreMotion", .when(platforms: [.iOS])),
44-
.linkedFramework("UserNotifications", .when(platforms: [.iOS])),
45-
.linkedFramework("AppTrackingTransparency", .when(platforms: [.iOS]))
34+
.linkedFramework("Foundation")
4635
]
4736
),
4837
]

0 commit comments

Comments
 (0)