New Features
- iOS: Add Swift Package Manager (SPM) support (#100). The plugin now ships a
Package.swiftalongside the existing podspec, so apps that have migrated to SPM can depend on it.- CocoaPods remains fully supported — both dependency managers reference the same sources and resolve the same
ZendeskSDKMessaging2.36.0 native SDK. Existing CocoaPods users are unaffected and need no changes. - SPM users only need an iOS deployment target of 14.0 (already the plugin's minimum).
- CocoaPods remains fully supported — both dependency managers reference the same sources and resolve the same
Implementation notes
SwiftPM does not allow mixing Objective-C and Swift in a single target, so the thin Objective-C plugin registrant was removed and the Swift class is now the registrant directly (exposed via @objc(ZendeskMessagingPlugin)). The public class name and the generated registrant are unchanged.
Verified by building the example app with both CocoaPods and Swift Package Manager, plus flutter analyze and the full test suite.