Skip to content

Add Swift pacakage manager - #21

Merged
developerjamiu merged 2 commits into
developerjamiu:masterfrom
rolinbos:master
Sep 14, 2026
Merged

developerjamiu merged 2 commits into
developerjamiu:masterfrom
rolinbos:master

Conversation

@rolinbos

Copy link
Copy Markdown
Contributor

Adds Swift Package Manager support to smart-text-flutter.

@developerjamiu

Copy link
Copy Markdown
Owner

Thanks for this. The plugin side looks right: Package.swift matches Flutter's current template, the sources are in the right place, and I confirmed the podspec change still builds for CocoaPods projects.

The example app wouldn't build for me, but that turned out not to be your doing. The repo folder was smart-text-flutter (hyphens) while the Dart package is smart_text_flutter (underscores), and Flutter's Swift Package Manager integration needs them to match. Known bug, flutter/flutter#186881, fixed upstream but not yet on stable. I've renamed the repository, which avoids it.

Your fork is still smart-text-flutter, so clone it into a matching folder:

git clone [email protected]:rolinbos/smart-text-flutter.git smart_text_flutter

One thing I'd like changed. The minimum iOS version is now inconsistent:

  • ios/smart_text_flutter/Package.swift says 13.0
  • ios/smart_text_flutter.podspec says 11.0
  • the README support table says 11.0+

Could you set all three to 13.0? Not 15.0: the plugin supports Flutter from 3.3.0, and Flutter only raised its own minimum to iOS 15 in 3.47.0, so 15.0 would break Swift Package Manager resolution and pod install for anyone older.

@developerjamiu developerjamiu added the enhancement New feature or request label Sep 14, 2026
@rolinbos

Copy link
Copy Markdown
Contributor Author

Hi @developerjamiu thanks for your reply. I've changed the minimum iOS version everywhere from 11.0 to 13.0.

@developerjamiu
developerjamiu merged commit d309023 into developerjamiu:master Sep 14, 2026
developerjamiu added a commit that referenced this pull request Sep 14, 2026
Swift Package Manager support landed in #21, which also raised the minimum iOS
version from 11.0 to 13.0. That is a breaking change for apps still targeting
iOS 11 or 12, so this goes out as a minor release rather than a patch.

Raises the minimum Flutter version to 3.35.0, the release in which Flutter's own
iOS minimum became 13.0. Without this, an app on an older Flutter satisfies the
declared constraint and then fails at pod install.

Also replaces the placeholder podspec homepage and commits the analyzer excludes
that Flutter adds on every pub get.
developerjamiu added a commit that referenced this pull request Sep 14, 2026
* chore: release 0.4.0

Swift Package Manager support landed in #21, which also raised the minimum iOS
version from 11.0 to 13.0. That is a breaking change for apps still targeting
iOS 11 or 12, so this goes out as a minor release rather than a patch.

Raises the minimum Flutter version to 3.35.0, the release in which Flutter's own
iOS minimum became 13.0. Without this, an app on an older Flutter satisfies the
declared constraint and then fails at pod install.

Also replaces the placeholder podspec homepage and commits the analyzer excludes
that Flutter adds on every pub get.

* chore: set podspec author
@developerjamiu developerjamiu mentioned this pull request Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants