a3285cc4a2
- Adiciona dependência zxing-android-embedded:4.3.0 - Adiciona permissão CAMERA e regista ScanPairingActivity no Manifest - Cria ScanPairingActivity: scan QR → parse JSON → POST claim-device - Adiciona preferência "Emparelhar dispositivo" nas definições do servidor - Adiciona handler de clique em WhatSmsServerSettingsFragment - Strings PT-PT: scan_qr_to_pair, pairing_success/failed/cancelled/error - Bump versionName para 3.2.0 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
58 lines
2.4 KiB
XML
58 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<PreferenceCategory app:title="@string/server">
|
|
<Preference
|
|
app:enableCopying="true"
|
|
app:icon="@drawable/ic_server"
|
|
app:key="transient.server_url"
|
|
app:persistent="false"
|
|
app:selectable="false"
|
|
app:title="@string/api_url" />
|
|
<ListPreference
|
|
app:icon="@drawable/ic_notifications"
|
|
app:key="gateway.notification_channel"
|
|
app:defaultValue="AUTO"
|
|
app:entries="@array/notification_channels_titles"
|
|
app:entryValues="@array/notification_channels_values"
|
|
app:title="@string/notification_channel"
|
|
app:useSimpleSummaryProvider="true" />
|
|
</PreferenceCategory>
|
|
<PreferenceCategory app:title="@string/credentials">
|
|
<EditTextPreference
|
|
app:enableCopying="true"
|
|
app:icon="@drawable/ic_username"
|
|
app:key="gateway.username"
|
|
app:persistent="false"
|
|
app:selectable="false"
|
|
app:title="@string/username" />
|
|
<EditTextPreference
|
|
app:enableCopying="true"
|
|
app:icon="@drawable/ic_password"
|
|
app:key="gateway.password"
|
|
app:persistent="false"
|
|
app:title="@string/password" />
|
|
<Preference
|
|
android:icon="@drawable/ic_code"
|
|
android:key="gateway.login_code"
|
|
android:persistent="false"
|
|
android:summary="@string/use_this_code_to_sign_in_on_another_device"
|
|
android:title="@string/login_code"
|
|
app:enableCopying="true" />
|
|
</PreferenceCategory>
|
|
<PreferenceCategory app:title="@string/device">
|
|
<Preference
|
|
android:icon="@drawable/ic_device_id"
|
|
android:key="transient.device_id"
|
|
android:title="@string/device_id"
|
|
app:enableCopying="true"
|
|
app:persistent="false" />
|
|
<Preference
|
|
app:key="action.pair_device"
|
|
app:icon="@drawable/ic_cloud_server"
|
|
app:title="@string/pair_device"
|
|
app:summary="@string/pair_device_summary" />
|
|
</PreferenceCategory>
|
|
<Preference app:summary="@string/restart_required_to_apply_changes" />
|
|
</PreferenceScreen>
|