Skip to content

Conversation

@loic-sharma
Copy link
Member

Prior to Flutter 3.24, a Flutter app that was migrated to have Swift Package Manager integration could not be built on the stable branch.

With Flutter 3.24, the app will now build successfully. However, plugins will continue to be installed using CocoaPods as the SwiftPM feature remains unavailable on the stable channel.

Issues fixed by this PR (if any): flutter/flutter#153448

PRs or commits this PR depends on (if any):

Presubmit checklist

  • This PR is marked as draft with an explanation if not meant to land until a future stable release.
  • This PR doesn’t contain automatically generated corrections (Grammarly or similar).
  • This PR follows the Google Developer Documentation Style Guidelines — for example, it doesn’t use i.e. or e.g., and it avoids I and we (first person).
  • This PR uses semantic line breaks of 80 characters or fewer.

@loic-sharma loic-sharma requested review from a team, parlough and sfshaza2 as code owners August 21, 2024 22:27
@loic-sharma loic-sharma requested a review from jmagman August 21, 2024 22:27
your Flutter plugins depend on.
If you disable the Swift Package Manager feature,
you will need to [remove Swift Package Manager integration][removeSPM] from apps
that are migrated.
Copy link
Member Author

Choose a reason for hiding this comment

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

The previous statement was incorrect. You had to undo the integration if you switched to the stable branch (which also implicitly disables the SPM feature). If you disabled the SPM feature but stayed on the master channel, the app would continue to build fine. I had misunderstood how this worked!

@flutter-website-bot
Copy link
Collaborator

Visit the preview URL for this PR (updated for commit 6be62c1):

https://flutter-docs-prod--pr11071-spm-flutter-3-24-pqg90v64.web.app

Swift Package Manager feature turned on migrates the project to add
Swift Package Manager integration.
**Do not commit the migration's changes to your version control system.**
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI, I kept this recommendation to not check-in the SPM integration for your example app. This ensures customers using Flutter version lower than 3.24 can continue to build the example app.

Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

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

lgtm

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.

4 participants