Skip to content

Add Netmera iOS dependencies via SPM, remove CocoaPods integration#31

Merged
baki-netmera merged 1 commit into
masterfrom
task/spm-support
Jul 24, 2026
Merged

Add Netmera iOS dependencies via SPM, remove CocoaPods integration#31
baki-netmera merged 1 commit into
masterfrom
task/spm-support

Conversation

@baki-netmera

Copy link
Copy Markdown
Contributor

Bump netmera_flutter_sdk to 3.2.0, which introduces Swift Package Manager support for the iOS plugin as an alternative to CocoaPods. Migrate the example app's iOS setup to use it instead of the previous CocoaPods-based integration.

  • Enable Flutter's project-level SPM support via flutter.config.enable-swift-package-manager: true in pubspec.yaml, so the setting applies for every contributor without needing a machine-wide flutter config toggle.
  • Add the Netmera swift-sdk package (https://github.com/Netmera/swift-sdk, exact version 4.23.3) as a Swift Package dependency in Runner.xcodeproj, linking the NetmeraNotificationServiceExtension and NetmeraNotificationContentExtension products into the Runner target for Media Push support.
  • Remove the CocoaPods-based Netmera integration from the Podfile: drop the NetmeraNotificationServiceExtension / Content pods, the now-empty target blocks for the two notification extensions, and the Swinject BUILD_LIBRARY_FOR_DISTRIBUTION post_install workaround that CocoaPods needed but SPM does not.
  • Update the iOS setup section of README.md to document both integration paths (SPM recommended, CocoaPods still supported), matching the SDK's own updated documentation.

@baki-netmera baki-netmera self-assigned this Jul 22, 2026
Bump netmera_flutter_sdk to 3.2.0, which introduces Swift
Package Manager support for the iOS plugin as an alternative to
CocoaPods. Migrate the example app's iOS setup to use it instead of
the previous CocoaPods-based integration.

- Enable Flutter's project-level SPM support via
  `flutter.config.enable-swift-package-manager: true` in
  pubspec.yaml, so the setting applies for every contributor without
  needing a machine-wide `flutter config` toggle.
- Add the Netmera swift-sdk package (https://github.com/Netmera/
  swift-sdk, exact version 4.23.3) as a Swift Package dependency in
  Runner.xcodeproj, linking the NetmeraNotificationServiceExtension
  and NetmeraNotificationContentExtension products into the Runner
  target for Media Push support.
- Remove the CocoaPods-based Netmera integration from the Podfile:
  drop the NetmeraNotificationServiceExtension / Content pods, the
  now-empty target blocks for the two notification extensions, and
  the Swinject BUILD_LIBRARY_FOR_DISTRIBUTION post_install workaround
  that CocoaPods needed but SPM does not.
- Regenerate Podfile.lock; fluttertoast is now the only remaining
  CocoaPods dependency, since Firebase, app_links, and
  netmera_flutter_sdk are resolved via Flutter's generated Swift
  package instead.
- Commit the resolved SwiftPM manifests (Package.resolved) for both
  the project and workspace so builds are reproducible across
  machines, mirroring what Podfile.lock does for CocoaPods.
- Update the iOS setup section of README.md to document both
  integration paths (SPM recommended, CocoaPods still supported),
  matching the SDK's own updated documentation.
@baki-netmera
baki-netmera merged commit 38c87b2 into master Jul 24, 2026
@baki-netmera
baki-netmera deleted the task/spm-support branch July 24, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants