Skip to content
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

[cross_file] Move from flutter/plugins. #305

Merged
merged 15 commits into from
Mar 10, 2021
Merged

Conversation

ditman
Copy link
Member

@ditman ditman commented Mar 10, 2021

cross_file doesn't fit very well with the testing infra of flutter/plugins, since it's just a cross-platform abstraction of dart:io File, and not a proper plugin.

It seems that flutter/packages might be a better home for this package, and it should have been always deployed here, but since it was forked off of a plugin, it lived until now in flutter/plugins.

This PR moves the package to flutter/packages, and only minimally changes code to comply with the slightly different analysis rules of this repo.

Pre-launch Checklist

  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • 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.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

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

mvanbeusekom and others added 15 commits November 18, 2020 09:04
…le platforms. (flutter#3260)

* Initial version of x_file package

* Renamed from x_file to cross_file

* Add back x_file type to file_selector

* Fix formatting issues

* Update homepage and version

* Added README.md

* Added missing copyright

* Revert "Added missing copyright"

This reverts commit cf7e8d5f3810ae646669f584738502a8cc3c5ca1.

* Add missing copyright

Co-Authored-By: Jason Panelli <[email protected]>

* Renamed class implementation back to XFile

* Fix formatting issues

* Rename to cross_file

* Added code owners for cross_file package

Co-authored-by: Jason Panelli <[email protected]>
Update Flutter SDK constraint to match templates.
Also: skip some packages from the all_plugins app so CI passes.
Without this, the dummy ("interface") XFile implementation of these properties has different nullability than the others, and the analyzer doesn't match what the runtime actually sees.
@ditman ditman requested a review from stuartmorgan March 10, 2021 00:58
@ditman
Copy link
Member Author

ditman commented Mar 10, 2021

This is a link with the changes after the package was moved to the new repo.

Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM!

@ditman ditman merged commit e062c60 into flutter:master Mar 10, 2021
@ditman ditman deleted the move-cross-file branch March 10, 2021 19:30
@ditman
Copy link
Member Author

ditman commented Mar 10, 2021

Merged and published: https://pub.dev/packages/cross_file/versions/0.3.1+1

@kevmoo
Copy link
Contributor

kevmoo commented Mar 11, 2021

Don't forget to update your table in the README 😄

@ditman
Copy link
Member Author

ditman commented Mar 11, 2021

Don't forget to update your table in the README 😄

@kevmoo wow, I totally missed that one!

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.

6 participants