Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
/pluginsPublic archive

[camera] android-rework part 9: Final implementation of camera class#4059

Merged
stuartmorgan-g merged 107 commits intoflutter:masterfrom
Baseflow:camera-android/final-rework-implementation
Aug 23, 2021
Merged

[camera] android-rework part 9: Final implementation of camera class#4059
stuartmorgan-g merged 107 commits intoflutter:masterfrom
Baseflow:camera-android/final-rework-implementation

Conversation

@BeMacized
Copy link
Contributor

@BeMacizedBeMacized commentedJun 16, 2021
edited
Loading

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

  • 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] and the [C++, Objective-C, Java style guides]. (Note that unlike the flutter/flutter repo, the flutter/plugins repo does usedart format. See [plugin_tool 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].
    • While technically no breaking changes have occurred, a major version bump was done due to the size of the refactor. (more infohere)
  • I updated CHANGELOG.md to add a description of the change.
  • I updated/added relevant documentation (doc comments with///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test exempt.
  • All existing and new tests are passing.

mvanbeusekomand others added30 commitsApril 20, 2021 09:35
Co-authored-by: Andrew Coutts <andrewjohncoutts@gmail.com>
Co-authored-by: Andrew Coutts <andrewjohncoutts@gmail.com>
…nsor_features' into camera-android/supporting_functionality
@stuartmorgan-g
Copy link
Contributor

Is this ready for another review pass from@blasten ?

tinyc0der reacted with eyes emoji

Copy link

@blastenblasten left a 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

@renfelo
Copy link

renfelo commentedAug 19, 2021
edited
Loading

Is there a way we could use these PR series before merge? I've been trying for a while, but no success.

@stuartmorgan-g
Copy link
Contributor

@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?

@BeMacized
Copy link
ContributorAuthor

BeMacized commentedAug 20, 2021
edited
Loading

@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 requestedhere.

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. Specificallyopen,takePicture,startVideoRecording,stopVideoRecording,setFocusMode,startPreview andstartPreviewWithimageStream are still lacking tests.
I wanted to discuss these with a colleague, but it is not possible right now because of summer holidays.

@BeMacized
Copy link
ContributorAuthor

Is there a way we could use these PR series before merge? I've been trying for a while, but no success.

@renfelo You can add a temporary dependency on this PR for development as follows:

dependencies:...camera:git:url:git://github.com/Baseflow/flutter-plugins.gitref:camera-android/final-rework-implementationpath:packages/camera/camera

@stuartmorgan-g
Copy link
Contributor

stuartmorgan-g commentedAug 20, 2021
edited
Loading

@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 requestedhere.

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. Specificallyopen,takePicture,startVideoRecording,stopVideoRecording,setFocusMode,startPreview andstartPreviewWithimageStream are still lacking tests.
I wanted to discuss these with a colleague, but it is not possible right now because of summer holidays.

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 🙂 )

@BeMacized
Copy link
ContributorAuthor

@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 influtter/flutter#88685, so we should be good to go.

@stuartmorgan-g
Copy link
Contributor

Alright, let's flip the switch and start getting more feedback :)

@stuartmorgan-gstuartmorgan-g merged commit0a86ac8 intoflutter:masterAug 23, 2021
@stuartmorgan-g
Copy link
Contributor

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.

BeMacized reacted with hooray emoji

engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull requestAug 23, 2021
fluttergithubbot pushed a commit to flutter/flutter that referenced this pull requestAug 23, 2021
fotiDim pushed a commit to fotiDim/plugins that referenced this pull requestSep 13, 2021
…lutter#4059)This PR adds the final implementation for the Camera class that incorporates all the features from previous parts.
@mvanbeusekommvanbeusekom deleted the camera-android/final-rework-implementation branchSeptember 21, 2021 09:30
amantoux pushed a commit to amantoux/plugins that referenced this pull requestSep 27, 2021
…lutter#4059)This PR adds the final implementation for the Camera class that incorporates all the features from previous parts.
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@bparrishMinesbparrishMinesAwaiting requested review from bparrishMines

3 more reviewers

@stuartmorgan-gstuartmorgan-gstuartmorgan-g left review comments

@acouttsacouttsacoutts left review comments

@blastenblastenblasten approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@BeMacized@acoutts@mvanbeusekom@stuartmorgan-g@renfelo@blasten

Comments


[8]ページ先頭

©2009-2026 Movatter.jp