Skip to content

[camera_avfoundation] Implementation swift migration - part 3.5 #9254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

RobertOdrowaz
Copy link
Contributor

Migrates camera implementation as part of flutter/flutter#119109

This PR consists of everything that was possible to extract from the part 4 which includes:

  • Adds audioCaptureDeviceFactory to FLTCamConfiguration.
  • Renames the lockCaptureOrientation method of Objective-C type FLTCam when exported to Swift.
  • Renames arguments of the captureOutput method of Objective-C type FLTCam when exported to Swift.
  • Changes the connection argument type of the captureOutput method of the of FLTCam class to AVCaptureConnection.
  • Makes minimum/maximumAvailableZoomFactor and minimum/maximumExposureOffset fields of FLTCam readonly.
  • Remove @testable from camera_avfoundation_objc imports

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@RobertOdrowaz
Copy link
Contributor Author

@hellohuanlin Please take a look at this when you have some time

@hellohuanlin
Copy link
Contributor

@hellohuanlin Please take a look at this when you have some time

Sorry i was on leave last week. Will take a look first thing after the holiday break.

@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-implementation-swift-migration-part3-5 branch from 933ccf3 to d659f6e Compare May 28, 2025 15:01
@RobertOdrowaz RobertOdrowaz added the autosubmit Merge PR when tree becomes green via auto submit App label May 28, 2025
@auto-submit auto-submit bot merged commit 69499c0 into flutter:main May 28, 2025
81 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 29, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 29, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request May 29, 2025
flutter/packages@5743798...4463066

2025-05-29 [email protected] Allow tests to
use macOS 14 or 15.5 (flutter/packages#9328)
2025-05-29 [email protected] [camera_web] Remove mocktail
dependency. (flutter/packages#9195)
2025-05-28 [email protected] Roll Flutter from
4372bfb to 0e536eb (27 revisions) (flutter/packages#9334)
2025-05-28 [email protected] [camera_avfoundation]
Implementation swift migration - part 3.5 (flutter/packages#9254)
2025-05-28 [email protected]
[webview_flutter_wkwebview] Fix `testNilRequest` test for macOS 15.5
(flutter/packages#9330)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: camera platform-ios platform-macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants