Chore: MOBILE-4162 - Upgrade Iterable SDKs & add Swift Package Manager support - #8
Merged
Merged
Conversation
…flutter_config→flutter_dotenv)
Adds ios/iterable_flutter/Package.swift so the plugin can be consumed via Swift Package Manager alongside CocoaPods (Flutter falls back to CocoaPods when SPM is off). Verified: SwiftPM resolves Iterable's swift-sdk 6.7.3 and the example builds under SPM. Also gitignores SPM build artifacts (.build/, .swiftpm/). PREREQUISITE — repo rename required for SPM to function: Flutter derives the SwiftPM package identity from the plugin's repository folder basename, which must match the Dart package name (iterable_flutter). This repo is named iterable-flutter (hyphen), so SPM integration fails with "unable to override package ... identity mismatch" until the repo is renamed to iterable_flutter (and consumers update their git URL). Proven by build tests across folder names. CocoaPods is unaffected.
…, module version, pubignore
This was referenced Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MOBILE-4162
What does this PR do? 🧐
Upgrades the
iterable_flutterplugin's native Iterable SDKs to the latest and adds Swift Package Manager (SPM) support, releasing v0.8.0.Native SDK upgrades (to latest):
Iterable-iOS-SDK6.6.4→6.7.3(includes the iOS 18 push-delivery-sandbox fix)com.iterable:iterableapi3.6.3→3.9.0Swift Package Manager support:
ios/iterable_flutter/Package.swiftso the plugin can be consumed via SPM, alongside CocoaPods (Flutter falls back to CocoaPods when SPM is off).SwiftIterableFlutterPlugin→IterableFlutterPlugin(registration still bridges to+registerWithRegistrar:).Example app modernisation (required for the example to build under Flutter 3.44):
jcenter()).flutter_configwithflutter_dotenv(pure-Dart.envloader).Flutter derives the Swift package identity from the plugin's repository folder basename, which must match the Dart package name (
iterable_flutter). This repo is namediterable-flutter(hyphen), so SPM integration fails an identity check (unable to override package ... identity mismatch) until the repo is renamediterable-flutter→iterable_flutter. Proven by build tests across folder names.CocoaPods is entirely unaffected, so the SDK upgrades are usable now regardless. Because v0.8.0 ships
Package.swift, consumers should stay on CocoaPods until the rename, then adopt SPM.Test Evidence
Podfile.lock→Iterable-iOS-SDK (6.7.3)swift-sdk6.7.3app-debug.apk; manifest-blame →iterableapi:3.9.0NotificationParserTest)flutter test)How should this be manually tested? 🤓
cd example && flutter pub getcd ios && pod installthencd .. && flutter build ios --simulator --no-codesign→ builds;Podfile.lockshowsIterable-iOS-SDK (6.7.3).flutter build apk --debug→ builds; gradle resolvescom.iterable:iterableapi:3.9.0.flutter test→ 13/13 pass.iterable_flutter):flutter config --enable-swift-package-managerthenflutter build ios --simulator --no-codesign→ SwiftPM resolvesswift-sdk6.7.3.Any background context you want to provide? 🤗
iterable_flutteris abandoned; SpringCare maintains this fork.flutter_config(latest, 2.0.2) still references Flutter's removed v1Registrar, making it Android-incompatible.iterable-flutter→iterable_flutter(needed for SPM identity resolution).iterable_fluttergit dependency to the new repo URL +ref: 0.8.0.