Relax Android biometric availability check
This commit is contained in:
+5
-1
@@ -2,10 +2,14 @@
|
||||
|
||||
## Versión actual
|
||||
|
||||
- Versión base: `1.2.6`
|
||||
- Versión base: `1.2.7`
|
||||
|
||||
## Historial
|
||||
|
||||
### 1.2.7 - 2026-04-23
|
||||
|
||||
- Android relaja la detección de biometría para aceptar equipos con soporte biométrico débil o fuerte, evitando que deje de ofrecer la activación por huella.
|
||||
|
||||
### 1.2.6 - 2026-04-23
|
||||
|
||||
- Android deja de desactivar la huella cuando se cierra o pospone el diálogo de oferta biométrica.
|
||||
|
||||
@@ -18,8 +18,8 @@ android {
|
||||
applicationId "net.linkedcorp.linkedsign"
|
||||
minSdk 26
|
||||
targetSdk 35
|
||||
versionCode 10206
|
||||
versionName "1.2.6"
|
||||
versionCode 10207
|
||||
versionName "1.2.7"
|
||||
|
||||
buildConfigField "String", "API_BASE_URL", "\"${apiBaseUrl}\""
|
||||
}
|
||||
|
||||
@@ -2252,10 +2252,14 @@ private fun canUseBiometricAccess(context: Context): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
val result = BiometricManager.from(context)
|
||||
.canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_STRONG or BiometricManager.Authenticators.BIOMETRIC_WEAK)
|
||||
val manager = BiometricManager.from(context)
|
||||
val weakResult = manager.canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_WEAK)
|
||||
if (weakResult == BiometricManager.BIOMETRIC_SUCCESS) {
|
||||
return true
|
||||
}
|
||||
|
||||
return result == BiometricManager.BIOMETRIC_SUCCESS
|
||||
val strongResult = manager.canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_STRONG)
|
||||
return strongResult == BiometricManager.BIOMETRIC_SUCCESS
|
||||
}
|
||||
|
||||
private fun requestBiometricUnlock(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "linkedsign-backend",
|
||||
"version": "1.2.6",
|
||||
"version": "1.2.7",
|
||||
"private": true,
|
||||
"description": "Initial backend for LinkedSign",
|
||||
"main": "src/server.js",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"private": true,
|
||||
"version": "1.2.6",
|
||||
"version": "1.2.7",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
Reference in New Issue
Block a user