Relax Android biometric availability check

This commit is contained in:
2026-04-23 15:30:11 -05:00
parent 51b2116bde
commit 14a3d9f497
6 changed files with 17 additions and 9 deletions
+5 -1
View File
@@ -2,10 +2,14 @@
## Versión actual ## Versión actual
- Versión base: `1.2.6` - Versión base: `1.2.7`
## Historial ## 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 ### 1.2.6 - 2026-04-23
- Android deja de desactivar la huella cuando se cierra o pospone el diálogo de oferta biométrica. - Android deja de desactivar la huella cuando se cierra o pospone el diálogo de oferta biométrica.
+1 -1
View File
@@ -1 +1 @@
1.2.6 1.2.7
+2 -2
View File
@@ -18,8 +18,8 @@ android {
applicationId "net.linkedcorp.linkedsign" applicationId "net.linkedcorp.linkedsign"
minSdk 26 minSdk 26
targetSdk 35 targetSdk 35
versionCode 10206 versionCode 10207
versionName "1.2.6" versionName "1.2.7"
buildConfigField "String", "API_BASE_URL", "\"${apiBaseUrl}\"" buildConfigField "String", "API_BASE_URL", "\"${apiBaseUrl}\""
} }
@@ -2252,10 +2252,14 @@ private fun canUseBiometricAccess(context: Context): Boolean {
return false return false
} }
val result = BiometricManager.from(context) val manager = BiometricManager.from(context)
.canAuthenticate(BiometricManager.Authenticators.BIOMETRIC_STRONG or BiometricManager.Authenticators.BIOMETRIC_WEAK) 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( private fun requestBiometricUnlock(
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "linkedsign-backend", "name": "linkedsign-backend",
"version": "1.2.6", "version": "1.2.7",
"private": true, "private": true,
"description": "Initial backend for LinkedSign", "description": "Initial backend for LinkedSign",
"main": "src/server.js", "main": "src/server.js",
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "frontend", "name": "frontend",
"private": true, "private": true,
"version": "1.2.6", "version": "1.2.7",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",