-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[camera] android-rework part 9: Final implementation of camera class #4059
[camera] android-rework part 9: Final implementation of camera class #4059
Conversation
Co-authored-by: Andrew Coutts <[email protected]>
Co-authored-by: Andrew Coutts <[email protected]>
…s_resolution_sensor_features
…s_resolution_sensor_features
…roid/supporting_functionality
…ra-android/supporting_functionality
…nsor_features' into camera-android/supporting_functionality
Is this ready for another review pass from @blasten ? |
packages/camera/camera/android/src/test/java/io/flutter/plugins/camera/CameraTest.java
Outdated
Show resolved
Hide resolved
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.
Thanks for cleaning it up.
Generally, LGTM
Is there a way we could use these PR series before merge? I've been trying for a while, but no success. |
@BeMacized Does this need anything else (other than the version conflict resolution, which we can trivially resolve at the point of landing) or is it good to go? |
@stuartmorgan It is pretty much complete other than the extra unit tests you requested here. I've since added tests that cover the majority of the camera class, but a few are left remaining as I have some trouble figuring out how to write them. Specifically |
@renfelo You can add a temporary dependency on this PR for development as follows: dependencies:
...
camera:
git:
url: git://github.com/Baseflow/flutter-plugins.git
ref: camera-android/final-rework-implementation
path: packages/camera/camera |
I'm comfortable with landing this as-is if you file an issue for the remaining tests and can commit to following up on them in the near future (and as long as you feel like you've done sufficient manual testing of those cases that there are no obvious regressions). Generally we don't like to do that, but there's no question that with the tests you've already added here (plus all the unit tests in the previous 8 PRs that this will cut us over to using) this PR will significantly increase our test coverage relative to the existing implementation. Given that, and the fact that we believe this PR puts us in a much better position to fix—with test coverage—any new issues that people find in real-world usage, I think the good of doing the remaining testing in parallel rather than before landing in this particular case outweighs the downsides. (edit: "as is" meaning without those additional tests; if there are other things you know of that the PR needs we should obviously do those things 🙂 ) |
@stuartmorgan As far as I am aware, the remaining tests are all that still needs to happen, so if merging it as-is works for you, it works for me. I've filed an issue for them in flutter/flutter#88685, so we should be good to go. |
Alright, let's flip the switch and start getting more feedback :) |
Once the post-submit publish step runs I'll let the front-line triage team know that this is out, so they can start re-testing Android camera issues. |
…lutter#4059) This PR adds the final implementation for the Camera class that incorporates all the features from previous parts.
…lutter#4059) This PR adds the final implementation for the Camera class that incorporates all the features from previous parts.
This PR adds the final implementation for the Camera class that incorporates all the features from previous parts.
This is the final ninth PR in a series of pull-requests which will gradually introduce changes from PR #3651, making it easier to review the code (as discussed with @stuartmorgan).
As of right now, this PR will still be kept in draft mode, as it also contains changes it depends on from the previous parts. Once those have been merged and any changes from those have been merged back into this PR, the draft status will be removed.Pre-launch Checklist
dart format
. See [plugin_tool format])[shared_preferences]
///
).