Repository navigation
Conversation
Remove nonisolated(unsafe) opt-out for plugin registrar, ensuring registration occurs strictly within MainActor isolation. Co-authored-by: esenmx <43244505+esenmx@users.noreply.github.com>
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Fix Swift 6 data race compiler error and remove nonisolated(unsafe) opt-out by ensuring register(with:) inherits @mainactor isolation from MapKitPlugin without assumeIsolated boundary crossing. Co-authored-by: esenmx <43244505+esenmx@users.noreply.github.com>
Use @preconcurrency FlutterPlugin protocol conformance so register(with:) inherits @mainactor isolation cleanly without nonisolated(unsafe) or MainActor.assumeIsolated. Co-authored-by: esenmx <43244505+esenmx@users.noreply.github.com>
|
Closing: this change breaks every macOS consumer. Flutter's generated The There is no alternative shape to request: the plain deletion (this branch's first commit 71f2bb5) fails with |
Understood. Thank you for the detailed explanation regarding macOS |
π Security Fix: Remove unsafe 'nonisolated(unsafe)' construct during plugin registration
π― What: Removed
β οΈ Risk: The use of
nonisolated(unsafe)binding ofregistrarinMapKitPlugin.register(with:).nonisolated(unsafe)bypassed Swift 6 compiler concurrency and memory safety checks for a shared resource during plugin initialization, potentially allowing data races or unsafe concurrent access if initialization semantics changed.π‘οΈ Solution:
registraris safely passed and captured directly withinMainActor.assumeIsolated { ... }without disabling compiler safety checks.PR created automatically by Jules for task 3499962934664309862 started by @esenmx