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

Commit 35847e4

Browse files
authored
[local_auth] Fix incorrect switch fallthrough (#3473)
1 parent 9764636 commit 35847e4

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

packages/local_auth/CHANGELOG.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
* Allow pin, passcode, and pattern authentication with `authenticate` method
44
* **Breaking change**. Parameter names refactored to use the generic `biometric` prefix in place of `fingerprint` in the `AndroidAuthMessages` class
5-
* `fingerprintHint` is now `biometricHint`
6-
* `fingerprintNotRecognized`is now `biometricNotRecognized`
7-
* `fingerprintSuccess`is now `biometricSuccess`
8-
* `fingerprintRequiredTitle` is now `biometricRequiredTitle`
5+
* `fingerprintHint` is now `biometricHint`
6+
* `fingerprintNotRecognized`is now `biometricNotRecognized`
7+
* `fingerprintSuccess`is now `biometricSuccess`
8+
* `fingerprintRequiredTitle` is now `biometricRequiredTitle`
9+
10+
## 1.0.0-nullsafety.4
11+
12+
* Fix incorrect error handling switch case fallthrough.
913

1014
## 1.0.0-nullsafety.3
1115

@@ -203,4 +207,4 @@
203207

204208
## 0.0.1
205209

206-
* Initial release of local authentication plugin.
210+
* Initial release of local authentication plugin.

packages/local_auth/android/src/main/java/io/flutter/plugins/localauth/AuthenticationHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public void onAuthenticationError(int errorCode, CharSequence errString) {
138138
return;
139139
}
140140
completionHandler.onError("NotAvailable", "Security credentials not available.");
141+
break;
141142
case BiometricPrompt.ERROR_NO_SPACE:
142143
case BiometricPrompt.ERROR_NO_BIOMETRICS:
143144
if (promptInfo.isDeviceCredentialAllowed()) return;

packages/local_auth/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: local_auth
2-
description: Flutter plugin for Android and iOS devices to allow local
2+
description: Flutter plugin for Android and iOS devices to allow local
33
authentication via fingerprint, touch ID, face ID, passcode, pin, or pattern.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/local_auth
5-
version: 1.0.0-nullsafety.3
5+
version: 1.0.0-nullsafety.4
66

77
flutter:
88
plugin:

0 commit comments

Comments
 (0)