From 52fd1bcce30fd42876f6fb7ada2475c54f2747a8 Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Tue, 12 May 2026 20:42:52 +0200 Subject: [PATCH] feat(rebreak-native): Android counterpart for the app lock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit expo-local-authentication already works on Android (fingerprint / face unlock / device PIN — the module auto-adds the biometric permission, no app.config change needed). Only the settings description was iOS-flavoured ("Face ID, Touch ID"); add an Android variant and pick by Platform.OS. The lock screen + biometric prompt strings were already generic. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/rebreak-native/app/settings.tsx | 8 +++++--- apps/rebreak-native/locales/de.json | 3 ++- apps/rebreak-native/locales/en.json | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/rebreak-native/app/settings.tsx b/apps/rebreak-native/app/settings.tsx index 9b6995d..c07a874 100644 --- a/apps/rebreak-native/app/settings.tsx +++ b/apps/rebreak-native/app/settings.tsx @@ -259,9 +259,11 @@ export default function SettingsScreen() { { icon: 'lock-closed-outline', label: t('settings.app_lock'), - sublabel: appLockAvailable - ? t('settings.app_lock_desc') - : t('settings.app_lock_unavailable'), + sublabel: !appLockAvailable + ? t('settings.app_lock_unavailable') + : Platform.OS === 'ios' + ? t('settings.app_lock_desc') + : t('settings.app_lock_desc_android'), toggle: { value: appLockEnabled, onValueChange: handleToggleAppLock, diff --git a/apps/rebreak-native/locales/de.json b/apps/rebreak-native/locales/de.json index 8186bce..01e0a1a 100644 --- a/apps/rebreak-native/locales/de.json +++ b/apps/rebreak-native/locales/de.json @@ -506,7 +506,8 @@ "section_security": "Sicherheit", "app_lock": "App-Sperre", "app_lock_desc": "Beim Öffnen mit Face ID, Touch ID oder Code entsperren", - "app_lock_unavailable": "Auf diesem Gerät nicht verfügbar" + "app_lock_unavailable": "Auf diesem Gerät nicht verfügbar", + "app_lock_desc_android": "Beim Öffnen mit Fingerabdruck, Gesichtsentsperrung oder PIN entsperren" }, "device_limit": { "title": "Geräte-Limit erreicht", diff --git a/apps/rebreak-native/locales/en.json b/apps/rebreak-native/locales/en.json index e8a8f53..17bf0e2 100644 --- a/apps/rebreak-native/locales/en.json +++ b/apps/rebreak-native/locales/en.json @@ -506,7 +506,8 @@ "section_security": "Security", "app_lock": "App lock", "app_lock_desc": "Unlock with Face ID, Touch ID or passcode when opening", - "app_lock_unavailable": "Not available on this device" + "app_lock_unavailable": "Not available on this device", + "app_lock_desc_android": "Unlock with fingerprint, face unlock or PIN when opening" }, "device_limit": { "title": "Device limit reached",