Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 22ec14c

Browse files
committed
Fixed tests.
1 parent 9eaba3c commit 22ec14c

File tree

5 files changed

+12
-19
lines changed

5 files changed

+12
-19
lines changed

packages/local_auth/local_auth/CHANGELOG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
## 2.1.0
2-
* Adds Windows support.
3-
41
## 2.0.0
52

63
* Migrates plugin to federated architecture.

packages/local_auth/local_auth/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ the user.
66
This means referring to biometric authentication on iOS (Touch ID or lock code)
77
and the fingerprint APIs on Android (introduced in Android 6.0).
88

9-
| | Android | iOS | Windows |
10-
|-------------|-----------|------|-------------|
11-
| **Support** | SDK 16+\* | 9.0+ | Windows 10+ |
9+
| | Android | iOS |
10+
|-------------|-----------|------|
11+
| **Support** | SDK 16+\* | 9.0+ |
1212

1313
## Usage
1414

packages/local_auth/local_auth/example/windows/flutter/generated_plugins.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6-
local_auth_windows
76
)
87

98
set(PLUGIN_BUNDLED_LIBRARIES)

packages/local_auth/local_auth/pubspec.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for Android and iOS devices to allow local
33
authentication via fingerprint, touch ID, face ID, passcode, pin, or pattern.
44
repository: https://github.com/flutter/plugins/tree/main/packages/local_auth/local_auth
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+local_auth%22
6-
version: 2.1.0
6+
version: 2.0.0
77

88
environment:
99
sdk: ">=2.14.0 <3.0.0"
@@ -16,16 +16,18 @@ flutter:
1616
default_package: local_auth_android
1717
ios:
1818
default_package: local_auth_ios
19-
windows:
20-
default_package: local_auth_windows
19+
# Uncomment once the PR #4806 is merged.
20+
# windows:
21+
# default_package: local_auth_windows
2122

2223
dependencies:
2324
flutter:
2425
sdk: flutter
2526
intl: ^0.17.0
2627
local_auth_android: ^1.0.0
2728
local_auth_ios: ^1.0.1
28-
local_auth_windows: ^1.0.0
29+
# Uncomment once the PR #4806 is merged.
30+
# local_auth_windows: ^1.0.0
2931
local_auth_platform_interface: ^1.0.1
3032

3133
dev_dependencies:

packages/local_auth/local_auth_windows/test/local_auth_test.dart

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,9 @@ void main() {
7474
);
7575
});
7676

77-
test('stopAuthentication calls platform', () async {
78-
await localAuthentication.stopAuthentication();
79-
expect(
80-
log,
81-
<Matcher>[
82-
isMethodCall('stopAuthentication', arguments: null),
83-
],
84-
);
77+
test('stopAuthentication returns false', () async {
78+
final bool result = await localAuthentication.stopAuthentication();
79+
expect(result, false);
8580
});
8681

8782
group('With device auth fail over', () {

0 commit comments

Comments
 (0)