feat(rebreak-native): Android counterpart for the app lock
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) <noreply@anthropic.com>
This commit is contained in:
parent
4a17c7942d
commit
52fd1bcce3
@ -259,9 +259,11 @@ export default function SettingsScreen() {
|
|||||||
{
|
{
|
||||||
icon: 'lock-closed-outline',
|
icon: 'lock-closed-outline',
|
||||||
label: t('settings.app_lock'),
|
label: t('settings.app_lock'),
|
||||||
sublabel: appLockAvailable
|
sublabel: !appLockAvailable
|
||||||
? t('settings.app_lock_desc')
|
? t('settings.app_lock_unavailable')
|
||||||
: t('settings.app_lock_unavailable'),
|
: Platform.OS === 'ios'
|
||||||
|
? t('settings.app_lock_desc')
|
||||||
|
: t('settings.app_lock_desc_android'),
|
||||||
toggle: {
|
toggle: {
|
||||||
value: appLockEnabled,
|
value: appLockEnabled,
|
||||||
onValueChange: handleToggleAppLock,
|
onValueChange: handleToggleAppLock,
|
||||||
|
|||||||
@ -506,7 +506,8 @@
|
|||||||
"section_security": "Sicherheit",
|
"section_security": "Sicherheit",
|
||||||
"app_lock": "App-Sperre",
|
"app_lock": "App-Sperre",
|
||||||
"app_lock_desc": "Beim Öffnen mit Face ID, Touch ID oder Code entsperren",
|
"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": {
|
"device_limit": {
|
||||||
"title": "Geräte-Limit erreicht",
|
"title": "Geräte-Limit erreicht",
|
||||||
|
|||||||
@ -506,7 +506,8 @@
|
|||||||
"section_security": "Security",
|
"section_security": "Security",
|
||||||
"app_lock": "App lock",
|
"app_lock": "App lock",
|
||||||
"app_lock_desc": "Unlock with Face ID, Touch ID or passcode when opening",
|
"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": {
|
"device_limit": {
|
||||||
"title": "Device limit reached",
|
"title": "Device limit reached",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user