local_auth_watchos 0.1.0
local_auth_watchos: ^0.1.0 copied to clipboard
watchOS implementation of the local_auth plugin, authenticating the wearer with the device passcode through LocalAuthentication via dart:ffi.
0.1.0 #
First release beyond the generated scaffold.
Breaking
pollIntervalis gone, replaced bytimeout(default 2 minutes) — the bound on how long to wait for the system prompt, not a polling rate.- Minimum Dart SDK is now 3.1.0, where
NativeCallable.listenerlanded.
Changed
authenticateresolves the momentLAContextreplies, instead of polling every 120 ms for up to 1000 iterations.
Fixed
- An evaluation that resolved before Dart could register for the completion
signal would previously have hung. A policy the device cannot evaluate makes
LAContextcall its reply block synchronously insideevaluatePolicy, so the result is already there; the state is now checked once immediately after starting rather than only on a signal. - A timed-out authentication now cancels the native evaluation.
- Overlapping
authenticate()calls no longer clobber each other. The native side holds a single callback pointer, so a second call registered over the first's: the first then waited out its wholetimeoutand reported failure for an authentication the user had actually completed. Concurrent calls now share one trampoline and all settle together, and the callback is kept until the last of them finishes — so a call that resolves immediately (an unevaluatable policy) can no longer unregister the signal another call is still waiting on.
0.0.1 #
- Initial watchOS FFI scaffold generated by
flutter-watchos plugin portfromlocal_auth_darwin.