Skip to content

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Jun 10, 2020

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.

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I signed the [CLA].
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

  • No, no existing tests failed, so this is not a breaking change.
  • Yes, this is a breaking change. If not, delete the remainder of this section.

@jmagman jmagman added the tool Affects the "flutter" command-line tool. See also t: labels. label Jun 10, 2020
@jmagman jmagman self-assigned this Jun 10, 2020
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.''';
Copy link
Member Author

Choose a reason for hiding this comment

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

@jmagman
Copy link
Member Author

jmagman commented Jun 10, 2020

\cc @stuartmorgan

Copy link
Member

@zanderso zanderso left a 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
Copy link
Member

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?

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 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.

@jmagman jmagman merged commit 0093c6a into flutter:master Jun 12, 2020
@jmagman jmagman deleted the podfile-migration branch June 12, 2020 19:44
zljj0818 pushed a commit to zljj0818/flutter that referenced this pull request Jun 22, 2020
@jmagman jmagman added the platform-ios iOS applications specifically label Aug 21, 2020
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants