This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
packages/local_auth/local_auth_ios Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## 1.0.1
2+
3+ * BREAKING CHANGE: Changes ` stopAuthentication ` to always return false instead of throwing an error.
4+
15## 1.0.0
26
37* Initial release from migration to federated architecture.
Original file line number Diff line number Diff line change @@ -81,8 +81,9 @@ class LocalAuthIOS extends LocalAuthPlatform {
8181 Future <bool > isDeviceSupported () async =>
8282 (await _channel.invokeMethod <bool >('isDeviceSupported' )) ?? false ;
8383
84+ /// Always returns false as this method is not supported on iOS.
8485 @override
8586 Future <bool > stopAuthentication () async {
86- throw UnimplementedError ( 'stopAuthentication() is not supported on iOS.' ) ;
87+ return false ;
8788 }
8889}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: local_auth_ios
22description : iOS implementation of the local_auth plugin.
33repository : https://github.com/flutter/plugins/tree/master/packages/local_auth/local_auth_ios
44issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+local_auth%22
5- version : 1.0.0
5+ version : 1.0.1
66
77environment :
88 sdk : " >=2.14.0 <3.0.0"
Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ void main() {
7575 );
7676 });
7777
78- test ('stopAuthentication throws UnimplementedError ' , () async {
79- expect (() async => await localAuthentication.stopAuthentication (),
80- throwsUnimplementedError );
78+ test ('stopAuthentication returns false ' , () async {
79+ final bool result = await localAuthentication.stopAuthentication ();
80+ expect (result, false );
8181 });
8282
8383 group ('With device auth fail over' , () {
You can’t perform that action at this time.
0 commit comments