Skip to content

Commit

Permalink
RMET-3883 - Prepare to release version 4.0.1-OS6 (#15)
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

---------

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

## [4.0.1-OS6]

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

## [4.0.1-OS5]

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-fingerprint-aio",
"version": "4.0.1-OS5",
"version": "4.0.1-OS6",
"description": "Cordova plugin to use fingerprint authentication on Android and iOS",
"cordova": {
"id": "cordova-plugin-fingerprint-aio",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-fingerprint-aio" version="4.0.1-OS5">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-fingerprint-aio" version="4.0.1-OS6">
<name>FingerprintAllInOne</name>
<description>Cordova plugin to use fingerprint on Android and iOS</description>
<license>MIT</license>
Expand Down
8 changes: 2 additions & 6 deletions src/android/BiometricActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class BiometricActivity extends AppCompatActivity {
private CryptographyManager mCryptographyManager;
private static final String SECRET_KEY = "__aio_secret_key";
private BiometricPrompt mBiometricPrompt;
private static int numFailedAttempts = 0;
private int numFailedAttempts = 0;

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
Expand All @@ -40,11 +40,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {


mPromptInfo = new PromptInfo.Builder(getIntent().getExtras()).build();
if(numFailedAttempts >= mPromptInfo.getMaxAttempts()) {
onError(PluginError.BIOMETRIC_LOCKED_OUT.getValue(), PluginError.BIOMETRIC_LOCKED_OUT.getMessage());
return;
}

mCryptographyManager = new CryptographyManagerImpl();
final Handler handler = new Handler(Looper.getMainLooper());
Executor executor = handler::post;
Expand Down Expand Up @@ -136,6 +131,7 @@ public void onAuthenticationFailed() {
if(numFailedAttempts >= mPromptInfo.getMaxAttempts()) {
onError(PluginError.BIOMETRIC_LOCKED_OUT.getValue(), PluginError.BIOMETRIC_LOCKED_OUT.getMessage());
mBiometricPrompt.cancelAuthentication();
numFailedAttempts = 0;
}
}
};
Expand Down

0 comments on commit 4a1332b

Please sign in to comment.