local_auth_watchos 0.1.1
local_auth_watchos: ^0.1.1 copied to clipboard
watchOS implementation of the local_auth plugin, authenticating the wearer with the device passcode through LocalAuthentication via dart:ffi.
0.1.1 #
- README: the install snippet names
local_auth: ^3.0.2and this version. It named^0.0.1, which does not admit 0.1.x. pubspec.yaml:repositorypoints at this package's folder in the plugins repo.- Comments now say what keeps the FFI exports in the app: the CLI force-loads
the plugin archive, each export is
usedwith default visibility, and the CLI keeps global symbols through the App Store strip.ffiSymbolslists the exports. - README: a "Not supported on watchOS" table; PORTING_REPORT: an "Interface
coverage" list of every member of
local_auth_platform_interface1.1.0, audited by hand. - Example:
pubspec.yamlnameslocal_auth: ^3.0.2instead ofany.
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.