Skip to content

Commit

Permalink
[local_auth] Fix incorrect switch fallthrough (flutter#3473)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahaog authored Jan 30, 2021
1 parent 9764636 commit 35847e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
14 changes: 9 additions & 5 deletions packages/local_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

* Allow pin, passcode, and pattern authentication with `authenticate` method
* **Breaking change**. Parameter names refactored to use the generic `biometric` prefix in place of `fingerprint` in the `AndroidAuthMessages` class
* `fingerprintHint` is now `biometricHint`
* `fingerprintNotRecognized`is now `biometricNotRecognized`
* `fingerprintSuccess`is now `biometricSuccess`
* `fingerprintRequiredTitle` is now `biometricRequiredTitle`
* `fingerprintHint` is now `biometricHint`
* `fingerprintNotRecognized`is now `biometricNotRecognized`
* `fingerprintSuccess`is now `biometricSuccess`
* `fingerprintRequiredTitle` is now `biometricRequiredTitle`

## 1.0.0-nullsafety.4

* Fix incorrect error handling switch case fallthrough.

## 1.0.0-nullsafety.3

Expand Down Expand Up @@ -203,4 +207,4 @@

## 0.0.1

* Initial release of local authentication plugin.
* Initial release of local authentication plugin.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public void onAuthenticationError(int errorCode, CharSequence errString) {
return;
}
completionHandler.onError("NotAvailable", "Security credentials not available.");
break;
case BiometricPrompt.ERROR_NO_SPACE:
case BiometricPrompt.ERROR_NO_BIOMETRICS:
if (promptInfo.isDeviceCredentialAllowed()) return;
Expand Down
4 changes: 2 additions & 2 deletions packages/local_auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: local_auth
description: Flutter plugin for Android and iOS devices to allow local
description: Flutter plugin for Android and iOS devices to allow local
authentication via fingerprint, touch ID, face ID, passcode, pin, or pattern.
homepage: https://github.com/flutter/plugins/tree/master/packages/local_auth
version: 1.0.0-nullsafety.3
version: 1.0.0-nullsafety.4

flutter:
plugin:
Expand Down

0 comments on commit 35847e4

Please sign in to comment.