Skip to content

[camera_avfoundation] Implementation swift migration - part 3.5 - #9254

Merged
auto-submit[bot] merged 2 commits into
flutter:mainfrom
leancodepl:feature/camera-implementation-swift-migration-part3-5
May 28, 2025
Merged

auto-submit[bot] merged 2 commits into
flutter:mainfrom
leancodepl:feature/camera-implementation-swift-migration-part3-5

Conversation

@RobertOdrowaz

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@hellohuanlin

Copy link
Copy Markdown
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
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
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
…ter#9254)

Migrates camera implementation as part of flutter/flutter#119109

This PR consists of everything that was possible to extract from the [part 4](flutter#9219) 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

[^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.
Ortes pushed a commit to Ortes/packages that referenced this pull request Jun 25, 2025
…ter#9254)

Migrates camera implementation as part of flutter/flutter#119109

This PR consists of everything that was possible to extract from the [part 4](flutter#9219) 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

[^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.
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
…ter#9254)

Migrates camera implementation as part of flutter/flutter#119109

This PR consists of everything that was possible to extract from the [part 4](flutter#9219) 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

[^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.
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
…ter#9254)

Migrates camera implementation as part of flutter/flutter#119109

This PR consists of everything that was possible to extract from the [part 4](flutter#9219) 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

[^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.
Nakiha pushed a commit to Nakiha/VoidPlayer-Flutter that referenced this pull request Sep 28, 2026
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
1bd82e3 to 8b03f41 (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