Skip to content

Conversation

@camsim99
Copy link
Contributor

@camsim99 camsim99 commented Jan 29, 2024

Cherry-pick for #137115 to fix #141940. Steps taken to create this cherry-pick:

  1. Cherry pick commit 995e3fa and fix merge conflicts
  2. Delete the following code in flutter.groovy that I accidentally kept in the merge but was added in Reland: "Fix how Gradle resolves Android plugin" #137115
// Load shared gradle functions
project.apply from: Paths.get(flutterRoot.absolutePath, "packages", "flutter_tools", "gradle", "src", "main", "groovy", "native_plugin_loader.groovy")
  1. Deleted android_plugin_skip_unsupported_test.dart that was left incorrectly by merge.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

)" (flutter#142464)

This reverts commit f5ac225, i.e. flutter#137115.

This is a continuation of flutter#142266 that was redone based on feedback to make this easier to revert in the future. The exact steps I took to create this revert:

1. Revert commit noted above
2. Fix merge conflicts, that notably involved reverting some changes in flutter#140744 ~and flutter#141417 (fixed my merge to avoid the second PR from being affected)
3. Delete `packages/flutter_tools/test/integration.shard/android_plugin_skip_unsupported_test.dart` as this was added in the commit noted above

cc @Gustl22 since I couldn't tag as a reviewer
@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Jan 29, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this file be deleted? Same with packages/flutter_tools/test/integration.shard/test_data/plugin_each_settings_gradle_project.dart

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These were both added (along with packages/flutter_tools/test/integration.shard/android_plugin_skip_unsupported_test.dart) in #137115

private void configurePluginProject(Map<String, Object> pluginObject) {
assert(pluginObject.name instanceof String)
Project pluginProject = project.rootProject.findProject(":${pluginObject.name}")
private void configurePluginProject(String pluginName, String _) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As per a recommendation from @reidbaker, I downloaded a Groovy extension in VSCode to see if there were any issues and the only relevant one to lines modified here are lint warnings that the String _ variable should be named and that it's not referenced in the method. However, this was how it was before until it was changed in the original PR, so should be fine!

FWIW the other errors/warnings are also lints.

Copy link
Contributor

Choose a reason for hiding this comment

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

As per a recommendation from @reidbaker, I downloaded a Groovy extension in VSCode to see if there were any issues and the only relevant one to lines modified here are lint warnings that the String _ variable should be named and that it's not referenced in the method. However, this was how it was before until it was changed in the original PR, so should be fine!

FWIW the other errors/warnings are also lints.

Thanks for checking this was the last thing I could think of to help us gain confidence in the revert not creating more issues.

@camsim99 camsim99 requested a review from reidbaker January 30, 2024 18:59
@bartekpacia
Copy link
Member

bartekpacia commented Jan 30, 2024

Can I submit a PR for "Add support for Gradle Kotlin DSL" again now?

@camsim99
Copy link
Contributor Author

Can I submit a PR for "Add support for Gradle Kotlin DSL" again now?

Sure! So are you going to take on #142487?

@bartekpacia
Copy link
Member

Yes🙌

@itsjustkevin itsjustkevin added platform-android Android applications specifically autosubmit Merge PR when tree becomes green via auto submit App labels Jan 31, 2024
@auto-submit auto-submit bot merged commit 95bcb2a into flutter:flutter-3.19-candidate.1 Jan 31, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-android Android 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.

4 participants