-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[camera] Remove usage of _ambiguate
method in example
#6555
[camera] Remove usage of _ambiguate
method in example
#6555
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
@@ -4,7 +4,7 @@ publish_to: none | |||
|
|||
environment: | |||
sdk: ">=2.14.0 <3.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also update the minimum Dart SDK because Flutter 3 requires +2.17?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally only update the Dart version if we are actually enabling or requiring some new Dart functionality. This change is only about a Flutter API change, not a Dart change.
@@ -4,7 +4,7 @@ description: A Flutter plugin for controlling the camera. Supports previewing | |||
Dart. | |||
repository: https://github.com/flutter/plugins/tree/main/packages/camera/camera | |||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22 | |||
version: 0.10.0+3 | |||
version: 0.10.0+4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just updating the patch version because only the example code has been changed.
packages/camera/camera/CHANGELOG.md
Outdated
@@ -1,3 +1,8 @@ | |||
## 0.10.0+4 | |||
|
|||
* Removes usages of `_ambiguate` method in example. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this enough or should it be more descriptive?
@stuartmorgan Is this structure okay? If yes, I would also remove the |
Should I request a test exempt or add tests for this? If yes, how? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should qualify for a test exemption since it's conceptually just code removal.
@@ -4,7 +4,7 @@ publish_to: none | |||
|
|||
environment: | |||
sdk: ">=2.14.0 <3.0.0" | |||
flutter: ">=2.10.0" | |||
flutter: ">=3.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to change the requirements for camera
itself too, since we can't guarantee we won't break 2.10 going forward if we can't run the example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumped it to Flutter 3.0
also for camera
👍 Is it then still just a patch update? For v0.10.0+2 this was case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes; dropping support for old versions isn't a breaking change because the pub
resolver just won't even include it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@bparrishMines for secondary review. |
Thanks for the review and fixing the typos, @stuartmorgan ❤️ |
test-exempt: code removal on a personal note, thank you for cleaning up my mess! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Woops, this seems to have broken
|
The breakage looks like it's latent due to a recent change to how |
Part of flutter/flutter#111841
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.