Skip to content

feat!: [SDK-5823] drop CocoaPods support, require SPM (1/2) - #1206

Open
fadi-george wants to merge 2 commits into
mainfrom
fadi/sdk-5823
Open

fadi-george wants to merge 2 commits into
mainfrom
fadi/sdk-5823

Conversation

@fadi-george

Copy link
Copy Markdown
Collaborator

One Line Summary

Drop CocoaPods support for iOS and require Flutter 3.44+, where Swift Package Manager is the default.

Motivation

CocoaPods trunk goes read-only on Dec 2, 2026. After that, new OneSignalXCFramework versions can't be published to trunk, so the podspec can't follow native iOS bumps. Flutter 3.44 made SPM the default.

Scope

  • Raise pubspec.yaml minimum Flutter version to >=3.44.0. Apps on 3.41 to 3.43 stay on the last plugin version that supports pods.
  • Delete ios/onesignal_flutter.podspec. If an app has SPM turned off, Flutter now fails with: "The following plugin(s) are only compatible with Swift Package Manager: onesignal_flutter".
  • Delete examples/demo-pods and examples/demo-no-location-pods.
  • create-release-pr.yml: read and bump the iOS SDK version from Package.swift only.

Breaking change, so this should ship as a major version.

Stack:

  • 1/2 (this PR): code, examples, CI
  • 2/2: README, examples/build-ios.md, migration guide (to follow)

Testing

  • flutter analyze and unit tests (272) pass.
  • examples/demo iOS build (SPM) succeeds.
  • Fresh app with enable-swift-package-manager: false fails with the SPM-only error above.
  • New IOS_VERSION extraction returns 5.8.1 from Package.swift.

Affected code checklist

  • Notifications
  • Outcomes
  • Sessions
  • In-App Messaging
  • Build / dependency management (iOS)
  • CI / release workflow

Checklist

  • All the automated tests pass or I explained why that is not possible
  • I have personally tested this on my device or explained why that is not possible
  • I have reviewed this PR myself

🤖 Generated with Claude Code

Remove the plugin podspec and the pods demo apps. The release workflow
now reads and bumps the iOS SDK version only in Package.swift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fadi-george
fadi-george requested a review from a team as a code owner November 21, 2026 02:31
@fadi-george fadi-george changed the title feat: [SDK-5823] drop CocoaPods support, require SPM (1/2) feat!: [SDK-5823] drop CocoaPods support, require SPM (1/2) Nov 21, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant