Repository navigation
[local_auth_darwin] Fix Swift 6 concurrency analyzer errors from lifecycle delegate methods - #13296
Conversation
…cycle delegate methods
| // and applicationDidBecomeActive for apps that haven't migrated yet. | ||
| #if os(iOS) | ||
| @MainActor | ||
| public func sceneDidBecomeActive(_ scene: UIScene) { |
| } | ||
|
|
||
| @MainActor | ||
| public func applicationDidBecomeActive(_ application: UIApplication) { |
|
In general, I would expect that getting plugins to compile cleanly in strict mode is going to be pretty messy until the engine is fixed to annotate its protocols. The engine contract has always been to call method on the main thread, and plugins assume (and often need) that, but the annotations aren't in place. Doing it in the other order in all plugins will probably require a bunch of workarounds. |
There was a problem hiding this comment.
Code Review
This pull request updates the local_auth_darwin package to version 2.0.5. It removes the @MainActor attribute from the sceneDidBecomeActive and applicationDidBecomeActive methods in LocalAuthPlugin.swift, and updates the CHANGELOG.md and pubspec.yaml files. There are no review comments, and I have no feedback to provide.
I'm sure there's a lot more to do here, I'm currently wack-a-moleing the errors from flutter/flutter#194594 so we can get that fixed asap. There really weren't that many swift 6 errors though. |
flutter/packages@93eede7...10a178c 2026-10-19 47866232+chunhtai@users.noreply.github.com [material_ui] Fixes SearchAnchor and SearchBar semantics (flutter/packages#12680) 2026-10-17 tarrinneal@gmail.com [shared_preferences] switch to ffi/jni pigeon (flutter/packages#12329) 2026-10-17 22373191+Hari-07@users.noreply.github.com [in_app_purchase_storekit] Add show manage subscriptions path (flutter/packages#12454) 2026-10-17 ahmedsameha1@gmail.com [material_ui] Fix installing command material UI (flutter/packages#13135) 2026-10-16 magder@google.com [file_selector_ios] Drop deprecated UIDocumentPickerMode code path (flutter/packages#13292) 2026-10-16 magder@google.com [camera_avfoundation] Fixes sendability mismatch in completion handler (flutter/packages#13298) 2026-10-16 magder@google.com [local_auth_darwin] Fix Swift 6 concurrency analyzer errors from lifecycle delegate methods (flutter/packages#13296) 2026-10-16 magder@google.com [pointer_interceptor_ios] Use 'let' for unmutated var (flutter/packages#13297) 2026-10-16 magder@google.com [image_picker_ios] Fix Swift warnings in ImagePickerPluginTests (flutter/packages#13299) 2026-10-16 41930132+hellohuanlin@users.noreply.github.com [camera]delete fake bitrate/fps integration tests (flutter/packages#13291) 2026-10-16 magder@google.com [google_maps_flutter_ios] Use 'let' for unmutated var (flutter/packages#13300) 2026-10-16 zhongliu88889@gmail.com [VPAT] Declare input purpose on a11y_assessments text fields (flutter/packages#13243) 2026-10-16 50643541+Mairramer@users.noreply.github.com [cupertino_ui] Fix CupertinoMagnifier focalPointOffset animation scaling (flutter/packages#13118) 2026-10-16 mdebbar@google.com [tool] Exempt `test_apps/` from version and changelog checks (flutter/packages#13255) 2026-10-16 rmolivares@renzo-olivares.dev [material_ui] Fallback theme follows platform cherry pick (flutter/packages#13278) 2026-10-16 engine-flutter-autoroll@skia.org Roll Flutter from 5c7e45a to a3d71d8 (26 revisions) (flutter/packages#13290) 2026-10-16 41930132+hellohuanlin@users.noreply.github.com [camera]do not sleep to avoid hang due to merged thread (flutter/packages#13289) 2026-10-16 41930132+hellohuanlin@users.noreply.github.com [camera]fix camera failure due to wrong jpg extension (flutter/packages#13285) If this roll has caused a breakage, revert this CL and set the roller to dry run mode 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@93eede7...10a178c 2026-10-19 47866232+chunhtai@users.noreply.github.com [material_ui] Fixes SearchAnchor and SearchBar semantics (flutter/packages#12680) 2026-10-17 tarrinneal@gmail.com [shared_preferences] switch to ffi/jni pigeon (flutter/packages#12329) 2026-10-17 22373191+Hari-07@users.noreply.github.com [in_app_purchase_storekit] Add show manage subscriptions path (flutter/packages#12454) 2026-10-17 ahmedsameha1@gmail.com [material_ui] Fix installing command material UI (flutter/packages#13135) 2026-10-16 magder@google.com [file_selector_ios] Drop deprecated UIDocumentPickerMode code path (flutter/packages#13292) 2026-10-16 magder@google.com [camera_avfoundation] Fixes sendability mismatch in completion handler (flutter/packages#13298) 2026-10-16 magder@google.com [local_auth_darwin] Fix Swift 6 concurrency analyzer errors from lifecycle delegate methods (flutter/packages#13296) 2026-10-16 magder@google.com [pointer_interceptor_ios] Use 'let' for unmutated var (flutter/packages#13297) 2026-10-16 magder@google.com [image_picker_ios] Fix Swift warnings in ImagePickerPluginTests (flutter/packages#13299) 2026-10-16 41930132+hellohuanlin@users.noreply.github.com [camera]delete fake bitrate/fps integration tests (flutter/packages#13291) 2026-10-16 magder@google.com [google_maps_flutter_ios] Use 'let' for unmutated var (flutter/packages#13300) 2026-10-16 zhongliu88889@gmail.com [VPAT] Declare input purpose on a11y_assessments text fields (flutter/packages#13243) 2026-10-16 50643541+Mairramer@users.noreply.github.com [cupertino_ui] Fix CupertinoMagnifier focalPointOffset animation scaling (flutter/packages#13118) 2026-10-16 mdebbar@google.com [tool] Exempt `test_apps/` from version and changelog checks (flutter/packages#13255) 2026-10-16 rmolivares@renzo-olivares.dev [material_ui] Fallback theme follows platform cherry pick (flutter/packages#13278) 2026-10-16 engine-flutter-autoroll@skia.org Roll Flutter from 5c7e45a to a3d71d8 (26 revisions) (flutter/packages#13290) 2026-10-16 41930132+hellohuanlin@users.noreply.github.com [camera]do not sleep to avoid hang due to merged thread (flutter/packages#13289) 2026-10-16 41930132+hellohuanlin@users.noreply.github.com [camera]fix camera failure due to wrong jpg extension (flutter/packages#13285) If this roll has caused a breakage, revert this CL and set the roller to dry run mode 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
FlutterApplicationLifeCycleDelegate/FlutterSceneLifeCycleDelegateprotocol requirements are nonisolated, removeMainActor.From #10836
Fixes flutter/flutter#194594
Pre-Review Checklist
[shared_preferences]///).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