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

[camera]refactor FLTCam outside of CameraPlugin #4708

Merged
merged 5 commits into from
Jan 28, 2022

Conversation

hellohuanlin
Copy link
Contributor

@hellohuanlin hellohuanlin commented Jan 27, 2022

This PR moves FLTCam (and its companion classes) to a separate file, and updates the unit tests to remove dummy FLTCam interface.

Note that this FLTCam class is huge, so I'd prefer to scope this PR to just moving the code. But it's worth pointing out that FLTCam has multiple style issues not addressed by this PR, for example, missing comments on each properties and methods, missing most unit tests, etc.

This PR should conclude the "Breakup CameraPlugin.m" subtask in flutter/flutter#96429

No version change: just moving code to separate files.

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.

@hellohuanlin hellohuanlin marked this pull request as ready for review January 27, 2022 22:49
@hellohuanlin hellohuanlin requested review from jmagman, stuartmorgan-g and cyanglaz and removed request for bparrishMines January 27, 2022 22:49
Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

Note that this FLTCam class is huge, so I'd prefer to scope this PR to just moving the code. But it's worth pointing out that FLTCam has multiple style issues not addressed by this PR, for example, missing comments on each properties and methods, missing most unit tests, etc.

👍 LGTM

@hellohuanlin hellohuanlin 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 Jan 27, 2022
@jmagman
Copy link
Member

jmagman commented Jan 27, 2022

trigger No version change validation

@hellohuanlin can you file an issue for the publishable not passing on re-run even when the description is updated?

@hellohuanlin
Copy link
Contributor Author

@hellohuanlin can you file an issue for the publishable not passing on re-run even when the description is updated?

I filed this a while ago flutter/flutter#95594

@jmagman
Copy link
Member

jmagman commented Jan 27, 2022

I filed this a while ago flutter/flutter#95594

Ah thanks I couldn't find it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p: camera platform-ios waiting for tree to go green (Use "autosubmit") This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants