Skip to content

Commit f8262d2

Browse files
authored
[local_auth_darwin] Fix Swift 6 concurrency analyzer errors from lifecycle delegate methods (#13296)
`FlutterApplicationLifeCycleDelegate` / `FlutterSceneLifeCycleDelegate` protocol requirements are nonisolated, remove `MainActor`. From #10836 Fixes flutter/flutter#194594 ## 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.
1 parent bd2af66 commit f8262d2

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎packages/local_auth/local_auth_darwin/CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 2.0.5
22

3+
* Fixes Swift 6 concurrency analyzer errors from `@MainActor` lifecycle delegate methods.
34
* Updates minimum supported SDK version to Flutter 3.41/Dart 3.11.
45

56
## 2.0.4

‎packages/local_auth/local_auth_darwin/darwin/local_auth_darwin/Sources/local_auth_darwin/LocalAuthPlugin.swift‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,10 @@ public final class LocalAuthPlugin: NSObject, FlutterPlugin, LocalAuthApi, @unch
270270
// Both are kept for backward compatibility: sceneDidBecomeActive for apps using UIScene lifecycle,
271271
// and applicationDidBecomeActive for apps that haven't migrated yet.
272272
#if os(iOS)
273-
@MainActor
274273
public func sceneDidBecomeActive(_ scene: UIScene) {
275274
retryStickyAuth()
276275
}
277276

278-
@MainActor
279277
public func applicationDidBecomeActive(_ application: UIApplication) {
280278
retryStickyAuth()
281279
}

‎packages/local_auth/local_auth_darwin/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: local_auth_darwin
22
description: iOS implementation of the local_auth plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/local_auth/local_auth_darwin
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+local_auth%22
5-
version: 2.0.4
5+
version: 2.0.5
66

77
environment:
88
sdk: ^3.11.0

0 commit comments

Comments
 (0)