Uh oh!
There was an error while loading. Please reload this page.
[camera_avfoundation] Wrappers swift migration - part 1 - #10119
Conversation
9cda6e1 to
a84d272Compare
hellohuanlin
left a comment
There was a problem hiding this comment.
I only reviewed half of the PR. I wonder if you can split this into multiple PRs so it's easier review? Thanks!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
e008a0a to
bf2e952Compare…Output, FLTCapturePhotoOutput, FLTCaptureVideoDataOutput to Swift
bf2e952 to
8b57a08CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
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
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
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 **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). 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. [^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.
Migrates camera wrappers as part of flutter/flutter#119109
This PR migrates wrappers to Swift:
FLTCamConfigurationFLTCamMediaSettingsAVWrapperFLTCaptureOutputFLTCapturePhotoOutputFLTCaptureVideoDataOutputIn line with Swift conventions, the
FLTprefixes are removed. TheDefaultclass implementations are replaced with protocol conformance on baseAVclasses.Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).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-assistbot 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
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