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

[local_auth] Fix incorrect switch fallthrough #3473

Merged
merged 2 commits into from
Jan 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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