feat(pdfx): add Swift Package Manager support - #623
Conversation
|
@vinnyt please resolve the conflicts? |
| flutterFramework, | ||
| "pdfx_messages" | ||
| ], | ||
| path: "Sources/pdfx" |
There was a problem hiding this comment.
shouldn't the sources be moved to pdfx folder?
https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors
There was a problem hiding this comment.
Fixed in 333d4a0. I moved the generated Objective-C bridge under darwin/pdfx/Sources/pdfx/messages and updated both Package.swift and the Pigeon output paths. It remains a separate pdfx_messages target, nested beneath the plugin source folder and excluded from the Swift target, because SwiftPM does not support mixing Swift and Objective-C sources in one target. Verified with iOS and macOS SwiftPM builds on Flutter 3.44.9.
2e939f7 to
333d4a0
Compare
The CocoaPods podspec advertised iOS 8.0/macOS 10.11 while the new SwiftPM manifest requires iOS 13.0/macOS 10.15 for the same source, which could mislead apps integrating via CocoaPods on older OS versions. Also deduplicates the shared DEFINES_MODULE xcconfig entry and adds the pending CHANGELOG entry for this PR.
|
Thanks for the great contribution, this is a solid addition to pdfx. Appreciate the thorough validation across SwiftPM and CocoaPods paths. |
Summary
Validation
Validated with Flutter 3.44.9: