Thanks to visit codestin.com
Credit goes to github.com

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

[file_selector] Endorse ios and update examples #6320

Merged
merged 23 commits into from
Aug 29, 2022

Conversation

tarrinneal
Copy link
Contributor

Endorses ios plugin for file_selector plugin. This includes updating the file_selector examples to make it clear they won't function on ios, and prevent them from failing.

List which issues are fixed by this PR. You must list at least one issue.
fixes flutter/flutter#110097

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.

@tarrinneal tarrinneal marked this pull request as ready for review August 29, 2022 01:53
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "[email protected]",
Copy link
Member

Choose a reason for hiding this comment

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

@stuartmorgan do we usually actually check these binary images in? That seems unnecessary...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are in other ios plugin example folders as well, not to imply they should be.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, this came up recently in a different repo; we usually just run flutter create and basically leave it alone for the examples, because everyone trying to remember all of the things we want to change, across all the platforms, would be a nightmare.

We could potentially make repo tooling that would check examples for all the things we want to clean up about them so that it wouldn't require extra thought, it just hasn't been something that's been an issue so far.

From a repo standpoint the ship has largely sailed since we have copies already (although I guess they do rarely change, like the iOS corner change). I guess it would make a very small on-disk difference to developers using the plugin?

Copy link
Member

Choose a reason for hiding this comment

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

They are small, I wouldn't care so much about the plugin developers needing to download these images (though why?) but also that we're checking in binaries to the git history that will be there forever (without editing history https://stackoverflow.com/questions/10622179/how-to-find-identify-large-commits-in-git-history). I think binaries are special in this case. We don't check them into the flutter/flutter repo example projects, for example.

Up to you though, I don't have a strong preference.

Copy link
Contributor

Choose a reason for hiding this comment

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

Filed flutter/flutter#110523

but also that we're checking in binaries to the git history that will be there forever

Right, it would be good to stop. But incremental copies of the images we already have are basically free because of how git works, so we only pay again when flutter create actually changes images.

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

@tarrinneal tarrinneal merged commit c08e447 into flutter:main Aug 29, 2022
@tarrinneal tarrinneal deleted the file_selector_ios branch August 29, 2022 21:18
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 30, 2022
mauricioluz pushed a commit to mauricioluz/plugins that referenced this pull request Jan 26, 2023
* Endorse ios and update examples

* [gh_actions]: Bump lewagon/wait-on-check-action from 1.1.1 to 1.1.2 (flutter#6300)

* [gh_actions]: Bump github/codeql-action from 2.1.18 to 2.1.19 (flutter#6299)

* [gh_actions]: Bump ossf/scorecard-action from 1.1.1 to 1.1.2 (flutter#6071)

* Roll Flutter from abfba69 to 6d3f782 (74 revisions) (flutter#6314)

* [gh_actions]: Bump actions/labeler from 4.0.0 to 4.0.1 (flutter#6262)

* Roll Flutter from 6d3f782 to 000b96c (13 revisions) (flutter#6317)

* Adds info about commands requiring Flutter-bundled dart (flutter#6312)

* [tools] Validate code excerpt configuration (flutter#6286)

* temp lower ios version number

* Update README supported table

* remove unused routes

* lower version num

* iOS vs ios

* todo

* don't ignore ios

* add ios files

* add license block

* fix Uint8 error

* relocate import

* Exclude ios integration test for file_selector

* fix requests

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: engine-flutter-autoroll <[email protected]>
Co-authored-by: stuartmorgan <[email protected]>
Co-authored-by: Tarrin Neal <[email protected]>
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.

[file_selector] Endorse file_selector_ios
4 participants