File tree 4 files changed +10
-5
lines changed
packages/local_auth/local_auth_ios 4 files changed +10
-5
lines changed 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
+
1
5
## 1.0.0
2
6
3
7
* 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 {
81
81
Future <bool > isDeviceSupported () async =>
82
82
(await _channel.invokeMethod <bool >('isDeviceSupported' )) ?? false ;
83
83
84
+ /// Always returns false as this method is not supported on iOS.
84
85
@override
85
86
Future <bool > stopAuthentication () async {
86
- throw UnimplementedError ( 'stopAuthentication() is not supported on iOS.' ) ;
87
+ return false ;
87
88
}
88
89
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: local_auth_ios
2
2
description : iOS implementation of the local_auth plugin.
3
3
repository : https://github.com/flutter/plugins/tree/master/packages/local_auth/local_auth_ios
4
4
issue_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
6
6
7
7
environment :
8
8
sdk : " >=2.14.0 <3.0.0"
Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ void main() {
75
75
);
76
76
});
77
77
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 );
81
81
});
82
82
83
83
group ('With device auth fail over' , () {
You can’t perform that action at this time.
0 commit comments