Skip to content

feat: [SDK-5700] add FlutterFramework SwiftPM dependency - #1199

Merged
fadi-george merged 2 commits into
mainfrom
fadi/sdk-5700
Nov 9, 2026
Merged

fadi-george merged 2 commits into
mainfrom
fadi/sdk-5700

Conversation

@fadi-george

Copy link
Copy Markdown
Collaborator

One Line Summary

Add the FlutterFramework dependency to the plugin's Package.swift and raise the minimum Flutter/Dart versions it requires.

Motivation

Flutter asked plugin authors to depend on FlutterFramework because future Flutter versions will require it (migration guide). Closes #1198.

Scope

  • ios/onesignal_flutter/Package.swift: add the FlutterFramework package and product dependency.
  • pubspec.yaml: sdk: ^3.11.0, flutter: ">=3.41.0" (FlutterFramework requires Flutter 3.41+).
  • Second commit is formatting only: the Dart SDK bump switches dart format to the tall style, which CI's format-check enforces. Reviewers can skip it.

Apps on Flutter < 3.41 will keep resolving 5.7.x. This should ship as a minor release, and the release notes should call out the new minimums.

Testing

  • flutter analyze: no issues
  • dart run rps format-check: passes
  • dart run rps test: 272 passed, 98.4% coverage
  • examples/demo iOS simulator build with SwiftPM (Flutter 3.47.7): builds, FlutterFramework resolves

Affected code checklist

  • Notifications
  • Outcomes
  • Sessions
  • In-App Messaging
  • REST API requests
  • Public API changes
  • Build / dependency config (SwiftPM, pubspec)

Checklist

  • All the automated tests pass or I explained why they can't
  • I have reviewed the changes myself
  • No public API changes

🤖 Generated with Claude Code

fadi-george and others added 2 commits November 9, 2026 11:31
FlutterFramework requires Flutter 3.41+, so raise the minimum Flutter
and Dart SDK constraints accordingly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raising the SDK minimum switches dart format to the tall style.
Formatting only, no code changes.

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 9, 2026 19:32

@abdulraqeeb33 abdulraqeeb33 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The FlutterFramework dependency and the Flutter 3.41 / Dart 3.11 floors match the plugin-author guide. CocoaPods still depends on Flutter.

One nit: examples/demo, demo-pods, demo-no-location, and demo-no-location-pods still declare sdk: ^3.7.0. Pub get on Flutter 3.41+ still resolves. A Flutter SDK inside that range and below Dart 3.11 fails. Worth aligning those four to sdk: ^3.11.0 and flutter: ">=3.41.0".

PR CI does not compile iOS, so this manifest is covered by the local simulator build only.

@fadi-george
fadi-george merged commit ac420a5 into main Nov 9, 2026
2 checks passed
@fadi-george
fadi-george deleted the fadi/sdk-5700 branch November 9, 2026 20:18
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.

Swift Package Manager Support: Add FlutterFramework Dependency

2 participants