Skip to content

Conversation

@RobertOdrowaz
Copy link
Contributor

Migrates camera wrappers as part of flutter/flutter#119109

This PR migrates wrappers to Swift:

  • FLTCameraDeviceDiscovering
  • FLTDeviceOrientationProviding

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

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request continues the migration of the camera_avfoundation plugin from Objective-C to Swift by converting FLTCameraDeviceDiscovering and FLTDeviceOrientationProviding. The changes involve replacing Objective-C protocols and implementations with their Swift equivalents, updating call sites to use the new Swift types, and removing the now-obsolete Objective-C files. The new Swift code follows modern conventions, such as using computed properties instead of methods where appropriate. I've left one comment regarding a naming inconsistency for you to consider. Overall, this is a solid step forward in the migration process.

@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-wrappers-swift-migration-part2 branch from 8b8919e to 5615eb3 Compare October 23, 2025 16:21
@RobertOdrowaz RobertOdrowaz added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 24, 2025
@auto-submit auto-submit bot merged commit 49566c7 into flutter:main Oct 24, 2025
80 checks passed
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 27, 2025
flutter/packages@53d6138...bbf96a0

2025-10-27 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump org.jetbrains.kotlin:kotlin-bom from 2.2.20 to 2.2.21
in /packages/pigeon/platform_tests/test_plugin/android
(flutter/packages#10308)
2025-10-27 engine-flutter-autoroll@skia.org Roll Flutter from
cb18290 to 4c91098 (9 revisions) (flutter/packages#10307)
2025-10-26 stuartmorgan@google.com [tool] Add validation of auto-labeler
(flutter/packages#10300)
2025-10-24 stuartmorgan@google.com [ci] Auto-add triage labels for
engine and framework (flutter/packages#10295)
2025-10-24 engine-flutter-autoroll@skia.org Roll Flutter from
75004a6 to cb18290 (48 revisions) (flutter/packages#10299)
2025-10-24 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
9f455d2 to adc9010 (4 revisions) (flutter/packages#10292)
2025-10-24 robert.odrowaz@leancode.pl [camera_avfoundation] Wrappers
swift migration - part 2 (flutter/packages#10284)

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-zl pushed a commit to flutter/flutter that referenced this pull request Oct 31, 2025
flutter/packages@53d6138...bbf96a0

2025-10-27 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump org.jetbrains.kotlin:kotlin-bom from 2.2.20 to 2.2.21
in /packages/pigeon/platform_tests/test_plugin/android
(flutter/packages#10308)
2025-10-27 engine-flutter-autoroll@skia.org Roll Flutter from
cb18290 to 4c91098 (9 revisions) (flutter/packages#10307)
2025-10-26 stuartmorgan@google.com [tool] Add validation of auto-labeler
(flutter/packages#10300)
2025-10-24 stuartmorgan@google.com [ci] Auto-add triage labels for
engine and framework (flutter/packages#10295)
2025-10-24 engine-flutter-autoroll@skia.org Roll Flutter from
75004a6 to cb18290 (48 revisions) (flutter/packages#10299)
2025-10-24 engine-flutter-autoroll@skia.org Roll Flutter (stable) from
9f455d2 to adc9010 (4 revisions) (flutter/packages#10292)
2025-10-24 robert.odrowaz@leancode.pl [camera_avfoundation] Wrappers
swift migration - part 2 (flutter/packages#10284)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants