Skip to content

[camera] Camera with MediaSettings: platform implementations (federated) - #5223

Merged
auto-submit[bot] merged 224 commits into
flutter:mainfrom
mtbo-org:camera-with-settings-platform-implementations
Apr 5, 2024
Merged

[camera] Camera with MediaSettings: platform implementations (federated)#5223
auto-submit[bot] merged 224 commits into
flutter:mainfrom
mtbo-org:camera-with-settings-platform-implementations

Conversation

@PROGrand

@PROGrandPROGrand commented Oct 24, 2023

Copy link
Copy Markdown
Contributor

Platform implementations of federated plugin

This is the platform implementations part of camera PR #3586.

camera_platform_interface: 2.6.0 merged and published in PR #3615.

Now repeating steps 3,4 (see Changing federated plugins), because camera/camera depends on implementations camera/camera_android, camera/camera_web etc.

@PROGrand

Copy link
Copy Markdown
ContributorAuthor

@stuartmorgan
Hello, i applied all suggestions. Including your ones for camera_windows. @ditman approved camera_web.

@stuartmorgan-gstuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Windows mostly looks good; I did a pass of the Obj-C after some of it caught my attention while skimming the other implementations, and I left a number of comments there.

Comment threadpackages/camera/camera_android/example/pubspec.yaml
Comment threadpackages/camera/camera_avfoundation/ios/Classes/CameraPlugin.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/CameraPlugin.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCam.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCam.m Outdated
Comment threadpackages/camera/camera_windows/windows/record_handler.h Outdated
@jmagman

Copy link
Copy Markdown
Member

@stuartmorgan any more changes requested here? Or is this ready to be merged?

@stuartmorgan-gstuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the test structure changes, that looks much safer than all the class mocking.

Comment threadpackages/camera/camera_android_camerax/example/pubspec.yaml Outdated
Comment threadpackages/camera/camera_avfoundation/example/pubspec.yaml Outdated
Comment threadpackages/camera/camera_web/example/pubspec.yaml Outdated
Comment threadpackages/camera/camera_windows/example/pubspec.yaml Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/CameraPlugin.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCam.h Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCam.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCam.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCam.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCam.h Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCamMediaSettings.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCamMediaSettings.m Outdated
@jmagman

Copy link
Copy Markdown
Member

@stuartmorgan this is blocked on your review

Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCamMediaSettings.h Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCamMediaSettings.m Outdated
@PROGrand

PROGrand commented Mar 14, 2024

Copy link
Copy Markdown
ContributorAuthor

@stuartmorgan Thank, you for review. Your suggestions are applied.

@vashworth

Copy link
Copy Markdown
Contributor

@stuartmorgan Can you take a look when you have time?

@stuartmorgan-gstuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry for the delay again; just a few last small things.

Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCamMediaSettings.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCamMediaSettings.h Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCamMediaSettings.m Outdated
Comment threadpackages/camera/camera_avfoundation/ios/Classes/FLTCam.m Outdated
@PROGrand

Copy link
Copy Markdown
ContributorAuthor

@stuartmorgan suggestions applied

@stuartmorgan-gstuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! Could you rebase and squash a few of the commits together to get this under 250 commits, so that the CLA check will pass without intervention?

PROGrandand others added 3 commits April 5, 2024 17:13
suggestions applied
AssertPositiveNumberOrNil: macro to inline
formatted
.class to +class
Update packages/camera/camera_avfoundation/ios/Classes/FLTCamMediaSettings.m
Co-authored-by: Jenn Magder <magder@google.com>
applied suggestions. 02/25/2024.
dependency injection (DI) variant for unit test
ObjC suggestions applied
suggestion applied
updated camera_platform_interface versions
reverted changes to camera
merged 01/07/2024
refactored and co0mmented warning suppressions. renamed MediaRecorderBuilder.RecordingParameters
merged 12/07/2023

@stuartmorgan-gstuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

A bunch of files showed as changed since review, and because of the squash I can't tell if that's a GitHub artifact of the squash, or actual changes, so I re-reviewed those files. That turned up a few more minor comments which may be things I just didn't previously review, but I've flagged them regardless. Sorry that means one more quick pass.

Comment threadpackages/camera/camera_web/example/pubspec.yaml Outdated
Comment threadpackages/camera/camera_windows/example/pubspec.yaml Outdated
Comment threadpackages/camera/camera_avfoundation/example/lib/camera_controller.dart Outdated
Comment threadpackages/camera/camera_avfoundation/example/lib/main.dart Outdated
Comment threadpackages/camera/camera_android_camerax/example/pubspec.yaml Outdated
Comment threadpackages/camera/camera_android_camerax/pubspec.yaml Outdated
@PROGrand

Copy link
Copy Markdown
ContributorAuthor

@stuartmorgan resolved

@stuartmorgan-gstuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appfederated: partial_changesPR that contains changes for only a single package of a federated plugin changep: cameraplatform-androidplatform-iosplatform-macosplatform-webplatform-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@PROGrand@stuartmorgan-g@bparrishMines@ebjorklund01@jmagman@vashworth@ditman@hellohuanlin@camsim99