Skip to content

Commit

Permalink
RMET-3883 ::: Prepare to release version 4.0.1-OS6 (#18)
Browse files Browse the repository at this point in the history
* fix: catch two possible biometric erros (#10)

- BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED
- BIOMETRIC_STATUS_UNKNOWN

https://outsystemsrd.atlassian.net/browse/RMET-3176

* RMET-3176 :: raise android biometric version (#11)

* fix: catch two possible biometric erros

- BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED
- BIOMETRIC_STATUS_UNKNOWN

https://outsystemsrd.atlassian.net/browse/RMET-3176

* fix: raise androidx biometric version

https://outsystemsrd.atlassian.net/browse/RMET-3176

* feat: raise lib version (#12)

https://outsystemsrd.atlassian.net/browse/RMET-3176

* Fix ::: Android ::: Multiple failed biometric attempts (#14)

* fix: Failing biometrics multiple times locking out in future attempts

References: https://outsystemsrd.atlassian.net/wiki/spaces/RDME/pages/4426137659/iOS+18+Android+15+Assessment

* chore: Update CHANGELOG.md

References: https://outsystemsrd.atlassian.net/wiki/spaces/RDME/pages/4426137659/iOS+18+Android+15+Assessment

* chore(release): raise to version 4.0.1-OS6

References: https://outsystemsrd.atlassian.net/browse/RMET-3883

* RMET-2652 ::: Specific error messages on Android (#17)

* fix: Add specific error messages

References:
- https://outsystemsrd.atlassian.net/browse/RMET-2652

* fix: Update error messages

Following PR comments

References:
- https://outsystemsrd.atlassian.net/browse/RMET-2652

* chore(release): Update CHANGELOG.md to release 4.0.1-OS6

---------

Co-authored-by: Marta Carlos <[email protected]>
Co-authored-by: Alexandre Jacinto <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2024
1 parent 4a1332b commit 00d5675
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.

## [4.0.1-OS6]

### 05-12-2024
- [Android] Add error messages for several biometrics errors (https://outsystemsrd.atlassian.net/browse/RMET-2652)

### 27-11-2024
- [Android] Fix issue where multiple wrong biometric attempts would cause the plugin to return lockout automatically in future prompts.

Expand Down
20 changes: 10 additions & 10 deletions src/android/PluginError.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

public enum PluginError {

BIOMETRIC_UNKNOWN_ERROR(-100),
BIOMETRIC_AUTHENTICATION_FAILED(-102, "Authentication failed"),
BIOMETRIC_HARDWARE_NOT_SUPPORTED(-104),
BIOMETRIC_NOT_ENROLLED(-106),
BIOMETRIC_DISMISSED(-108),
BIOMETRIC_PIN_OR_PATTERN_DISMISSED(-109),
BIOMETRIC_UNKNOWN_ERROR(-100, "An unknown error occurred."),
BIOMETRIC_AUTHENTICATION_FAILED(-102, "Authentication failed."),
BIOMETRIC_HARDWARE_NOT_SUPPORTED(-104, "Biometrics is not supported on this hardware."),
BIOMETRIC_NOT_ENROLLED(-106, "Biometrics is not configured."),
BIOMETRIC_DISMISSED(-108, "Biometric prompt was dismissed by user."),
BIOMETRIC_PIN_OR_PATTERN_DISMISSED(-109, "Device credentials prompt was dismissed by user."),
BIOMETRIC_SCREEN_GUARD_UNSECURED(-110,
"Go to 'Settings -> Security -> Screenlock' to set up a lock screen"),
"Go to 'Settings -> Security -> Screenlock' to set up a lock screen."),
BIOMETRIC_LOCKED_OUT(-111, "Too many failed attempts. Try again later."),
BIOMETRIC_LOCKED_OUT_PERMANENT(-112),
BIOMETRIC_NO_SECRET_FOUND(-113),
BIOMETRIC_ARGS_PARSING_FAILED(-115),
BIOMETRIC_LOCKED_OUT_PERMANENT(-112, "Too many failed attempts. You need to use your device credentials to unlock."),
BIOMETRIC_NO_SECRET_FOUND(-113, "No secret found. Unable to decrypt using biometrics."),
BIOMETRIC_ARGS_PARSING_FAILED(-115, "Invalid arguments were sent."),

BIOMETRIC_SECURITY_VULNERABILITY(-116,
"A security vulnerability has been discovered with one or more hardware sensors. The affected sensor(s) are unavailable until a security update has addressed the issue."),
Expand Down

0 comments on commit 00d5675

Please sign in to comment.