You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[camera_avfoundation] Implementation swift migration - part 11 (#9690)
Migrates camera implementation as part of flutter/flutter#119109Resolvesflutter/flutter#170439. This PR migrates the last one of the problematic methods (`startImageStream`) to Switft, which resolves the issue.
This PR migrates the 8th chunk of `FLTCam` class to Swift:
* `startImageStream`
* `setUpCaptureSessionForAudioIfNeeded`
* `reportErrorMessage` (ObjC implementation removal)
Some properties of the FLTCam have to be temporarily made public so that they are accessible in DefaultCamera.
## 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.
Copy file name to clipboardExpand all lines: packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift
+136-1Lines changed: 136 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,92 @@ final class DefaultCamera: FLTCam, Camera {
Copy file name to clipboardExpand all lines: packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation_objc/include/camera_avfoundation/FLTCam.h
Copy file name to clipboardExpand all lines: packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation_objc/include/camera_avfoundation/FLTCam_Test.h
0 commit comments