-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Add iOS Podfile migration warning to support federated plugins #59201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
const String outOfDatePluginsPodfileConsequence = ''' | ||
This can cause issues if your application depends on plugins that do not support iOS. | ||
See https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms for details. | ||
If you have local Podfile edits you would like to keep, see https://github.com/flutter/flutter/issues/45197 for instructions.'''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\cc @stuartmorgan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm w/ question
return; | ||
} | ||
|
||
// Previously, the Podfile created a symlink to the cached artifacts engine framework |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there potentially an end-date for these mitigations, or is this code needed forever?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The primary purpose of #59044 is to move most of this logic into the tool so we can change it without requiring the user to regenerate their Podfile. It imports a new Ruby helper (bleh) from flutter_tools/bin and then calls those helper methods. So, 🤞 this is one of the last migration prompts we ever need (knock on wood as well).
So this particular migration prompt is to get them to generate the new version of the Podfile that imports from the tool. It will be needed long as we want to support projects created in 1.17 that upgrade to latest.
Description
#59044 moved as much logic as possible from the app Podfile into a ruby script in the tool. The Podfile needs to be regenerated to import and use the new script. Now that the logic is in the tool, app developers won't need to regenerate it when the plugin logic changes.
Related Issues
Part 2 of #59044.
First part of #39659
Tests
cocoapods_test
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze --flutter-repo
) does not report any problems on my PR.Breaking Change