Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@G1Joshi
Copy link
Contributor

@G1Joshi G1Joshi commented Apr 27, 2022

Removed all unnecessary imports because all of the used elements are also provided by the other imports.

  • This will increase overall pub points.

No version change:
No functional change for plugin clients

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 relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • 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.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@stuartmorgan-g
Copy link
Contributor

Thanks for the contribution! I've updated the PR description to exempt it from the version change requirement, and marked that it's test-exempt (being entirely no-op removal), but this will need ## NEXT changelog entries as described in the linked documentation.

@G1Joshi
Copy link
Contributor Author

G1Joshi commented Apr 27, 2022

I have updated the CHANGELOG!

@stuartmorgan-g
Copy link
Contributor

stuartmorgan-g commented Apr 28, 2022

I just noticed that we still have:

   # TODO(https://github.com/flutter/flutter/issues/74381):
   # Clean up existing unnecessary imports, and remove line to ignore.
   unnecessary_import: ignore

in our analysis_options.yaml. This PR should remove that, since presumably it's fixing all the remaining violations (and if it doesn't currently, it should). That way we are ensuring that this won't regress in the future.

@G1Joshi
Copy link
Contributor Author

G1Joshi commented Apr 28, 2022

#74381

Copy link
Contributor

@hellohuanlin hellohuanlin left a comment

Choose a reason for hiding this comment

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

thanks for cleaning this up

@G1Joshi G1Joshi requested a review from gaaclarke as a code owner April 28, 2022 18:27
Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

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

This is cool, I can't believe we can remove dart:async and flutter/foundation.dart from so many places! Good riddance!

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning all this up!

I removed the "No CHANGELOG change:" from the PR description; that override was not correct. As I said above, this will need a changelog change for each affected package. (Currently it's only in some of them.)

@G1Joshi G1Joshi requested a review from stuartmorgan-g April 29, 2022 17:12
@G1Joshi
Copy link
Contributor Author

G1Joshi commented Apr 30, 2022

I have made all the required changes.

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for this cleanup!

@stuartmorgan-g stuartmorgan-g added the waiting for tree to go green (Use "autosubmit") This PR is approved and tested, but waiting for the tree to be green to land. label May 2, 2022
@fluttergithubbot fluttergithubbot merged commit bbcb88d into flutter:main May 2, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 2, 2022
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants