Skip to content

v3.4.0

Latest

Choose a tag to compare

@chyiiiiiiiiiiii chyiiiiiiiiiiii released this 19 Jun 10:10

New Features

  • iOS: Add Swift Package Manager (SPM) support (#100). The plugin now ships a Package.swift alongside 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 ZendeskSDKMessaging 2.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).

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.