Skip to content

Conversation

@RobertOdrowaz
Copy link
Contributor

Migrates camera wrappers as part of flutter/flutter#119109

This PR migrates wrappers to Swift:

  • FLTCamConfiguration
  • FLTCamMediaSettingsAVWrapper
  • FLTCaptureOutput
  • FLTCapturePhotoOutput
  • FLTCaptureVideoDataOutput

In line with Swift conventions, the FLT prefixes are removed. The Default class implementations are replaced with protocol conformance on base AV classes.

Pre-Review Checklist

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

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

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 RobertOdrowaz marked this pull request as ready for review September 29, 2025 15:15
@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-wrappers-swift-migration-part1 branch from 9cda6e1 to a84d272 Compare September 29, 2025 15:29
@stuartmorgan-g stuartmorgan-g added the triage-ios Should be looked at in iOS triage label Oct 1, 2025
Copy link
Contributor

@hellohuanlin hellohuanlin left a comment

Choose a reason for hiding this comment

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

I only reviewed half of the PR. I wonder if you can split this into multiple PRs so it's easier review? Thanks!

@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-wrappers-swift-migration-part1 branch 2 times, most recently from e008a0a to bf2e952 Compare October 21, 2025 13:50
…Output, FLTCapturePhotoOutput, FLTCaptureVideoDataOutput to Swift
@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-wrappers-swift-migration-part1 branch from bf2e952 to 8b57a08 Compare October 21, 2025 13:54
@RobertOdrowaz RobertOdrowaz added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 21, 2025
@auto-submit auto-submit bot merged commit 37f0bb0 into flutter:main Oct 21, 2025
80 checks passed
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 23, 2025
flutter/packages@d113bbc...9ec29b6

2025-10-22 omar_hanafy@icloud.com [go_router] Support for top level
`onEnter` callback. (flutter/packages#8339)
2025-10-22 katelovett@google.com [go_router_builder] Ignore experimental
features (flutter/packages#10275)
2025-10-22 engine-flutter-autoroll@skia.org Roll Flutter from
2d34167 to 75004a6 (39 revisions) (flutter/packages#10279)
2025-10-22 47866232+chunhtai@users.noreply.github.com [ci]Adds mechanism
for packages to opt in to batched release (flutter/packages#10237)
2025-10-22 1063596+reidbaker@users.noreply.github.com [tool] Change
gradle-check logic to enforce alignment of java versions and a minimum
(17) (flutter/packages#10206)
2025-10-22 eternalkaif@gmail.com [various] Migrate example Radio groups
to new RadioGroup API (flutter/packages#10155)
2025-10-22 davidmartos96@gmail.com [mustache_template] Emoji support
(flutter/packages#10110)
2025-10-22 38378650+hgraceb@users.noreply.github.com [image_picker] Fix
typos in error messages for android (flutter/packages#10188)
2025-10-22 38378650+hgraceb@users.noreply.github.com [image_picker] Fix
typos in error messages for platform interface (flutter/packages#10211)
2025-10-21 robert.odrowaz@leancode.pl [camera_avfoundation] Wrappers
swift migration - part 1 (flutter/packages#10119)
2025-10-21 NearTox@outlook.com [go_router_builder] expand supported
versions of analyzer, build and source_gen (flutter/packages#10078)
2025-10-20 engine-flutter-autoroll@skia.org Roll Flutter from
891d7d5 to 2d34167 (18 revisions) (flutter/packages#10268)

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 flutter-ecosystem@google.com 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
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 24, 2025
flutter/packages@d113bbc...9ec29b6

2025-10-22 omar_hanafy@icloud.com [go_router] Support for top level
`onEnter` callback. (flutter/packages#8339)
2025-10-22 katelovett@google.com [go_router_builder] Ignore experimental
features (flutter/packages#10275)
2025-10-22 engine-flutter-autoroll@skia.org Roll Flutter from
2d34167 to 75004a6 (39 revisions) (flutter/packages#10279)
2025-10-22 47866232+chunhtai@users.noreply.github.com [ci]Adds mechanism
for packages to opt in to batched release (flutter/packages#10237)
2025-10-22 1063596+reidbaker@users.noreply.github.com [tool] Change
gradle-check logic to enforce alignment of java versions and a minimum
(17) (flutter/packages#10206)
2025-10-22 eternalkaif@gmail.com [various] Migrate example Radio groups
to new RadioGroup API (flutter/packages#10155)
2025-10-22 davidmartos96@gmail.com [mustache_template] Emoji support
(flutter/packages#10110)
2025-10-22 38378650+hgraceb@users.noreply.github.com [image_picker] Fix
typos in error messages for android (flutter/packages#10188)
2025-10-22 38378650+hgraceb@users.noreply.github.com [image_picker] Fix
typos in error messages for platform interface (flutter/packages#10211)
2025-10-21 robert.odrowaz@leancode.pl [camera_avfoundation] Wrappers
swift migration - part 1 (flutter/packages#10119)
2025-10-21 NearTox@outlook.com [go_router_builder] expand supported
versions of analyzer, build and source_gen (flutter/packages#10078)
2025-10-20 engine-flutter-autoroll@skia.org Roll Flutter from
891d7d5 to 2d34167 (18 revisions) (flutter/packages#10268)

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 flutter-ecosystem@google.com 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 triage-ios Should be looked at in iOS triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants