We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43f13cd commit 148f320Copy full SHA for 148f320
1 file changed
packages/camera/camera_avfoundation/example/ios/Runner/AppDelegate.swift
@@ -15,6 +15,13 @@ import UIKit
15
}
16
17
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
18
+ // Plugin registration eventually sends camera operations on the background queue, which
19
+ // would run concurrently with the test cases during unit tests, making the debugging
20
+ // process confusing. This setup is actually not necessary for the unit tests, so
21
+ // skip it when running unit tests.
22
+ if NSClassFromString("XCTestCase") != nil {
23
+ return
24
+ }
25
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
26
27
0 commit comments