mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
PM-12014: Enable accessibility autofill outside of debug builds (#3919)
This commit is contained in:
parent
2068948035
commit
84f92f1b13
3 changed files with 38 additions and 41 deletions
|
@ -3,44 +3,6 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<application tools:ignore="MissingApplicationIcon">
|
<application tools:ignore="MissingApplicationIcon">
|
||||||
<!--
|
|
||||||
The AutofillTileService name below refers to the legacy Xamarin app's service name.
|
|
||||||
This must always match in order for the app to properly query if it is providing autofill
|
|
||||||
tile services.
|
|
||||||
-->
|
|
||||||
<!--suppress AndroidDomInspection -->
|
|
||||||
<service
|
|
||||||
android:name="com.x8bit.bitwarden.AutofillTileService"
|
|
||||||
android:exported="true"
|
|
||||||
android:icon="@drawable/ic_notification"
|
|
||||||
android:label="@string/autofill"
|
|
||||||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
|
|
||||||
tools:ignore="MissingClass">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
|
||||||
</intent-filter>
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
The AccessibilityService name below refers to the legacy Xamarin app's service name. This
|
|
||||||
must always match in order for the app to properly query if it is providing accessibility
|
|
||||||
services.
|
|
||||||
-->
|
|
||||||
<!--suppress AndroidDomInspection -->
|
|
||||||
<service
|
|
||||||
android:name="com.x8bit.bitwarden.Accessibility.AccessibilityService"
|
|
||||||
android:exported="true"
|
|
||||||
android:label="@string/app_name"
|
|
||||||
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
|
|
||||||
tools:ignore="MissingClass">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.accessibilityservice.AccessibilityService" />
|
|
||||||
</intent-filter>
|
|
||||||
<meta-data
|
|
||||||
android:name="android.accessibilityservice"
|
|
||||||
android:resource="@xml/accessibility_service" />
|
|
||||||
</service>
|
|
||||||
|
|
||||||
<!-- Disable Crashlytics for debug builds -->
|
<!-- Disable Crashlytics for debug builds -->
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="firebase_crashlytics_collection_enabled"
|
android:name="firebase_crashlytics_collection_enabled"
|
||||||
|
|
|
@ -168,6 +168,26 @@
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The AccessibilityService name below refers to the legacy Xamarin app's service name. This
|
||||||
|
must always match in order for the app to properly query if it is providing accessibility
|
||||||
|
services.
|
||||||
|
-->
|
||||||
|
<!--suppress AndroidDomInspection -->
|
||||||
|
<service
|
||||||
|
android:name="com.x8bit.bitwarden.Accessibility.AccessibilityService"
|
||||||
|
android:exported="true"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
|
||||||
|
tools:ignore="MissingClass">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.accessibilityservice.AccessibilityService" />
|
||||||
|
</intent-filter>
|
||||||
|
<meta-data
|
||||||
|
android:name="android.accessibilityservice"
|
||||||
|
android:resource="@xml/accessibility_service" />
|
||||||
|
</service>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The CredentialProviderService name below refers to the legacy Xamarin app's service name.
|
The CredentialProviderService name below refers to the legacy Xamarin app's service name.
|
||||||
This must always match in order for the app to properly query if it is providing credential
|
This must always match in order for the app to properly query if it is providing credential
|
||||||
|
@ -199,6 +219,24 @@
|
||||||
android:value="true" />
|
android:value="true" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The AutofillTileService name below refers to the legacy Xamarin app's service name.
|
||||||
|
This must always match in order for the app to properly query if it is providing autofill
|
||||||
|
tile services.
|
||||||
|
-->
|
||||||
|
<!--suppress AndroidDomInspection -->
|
||||||
|
<service
|
||||||
|
android:name="com.x8bit.bitwarden.AutofillTileService"
|
||||||
|
android:exported="true"
|
||||||
|
android:icon="@drawable/ic_notification"
|
||||||
|
android:label="@string/autofill"
|
||||||
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
|
||||||
|
tools:ignore="MissingClass">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.service.quicksettings.action.QS_TILE" />
|
||||||
|
</intent-filter>
|
||||||
|
</service>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The GeneratorTileService name below refers to the legacy Xamarin app's service name.
|
The GeneratorTileService name below refers to the legacy Xamarin app's service name.
|
||||||
This must always match in order for the app to properly query if it is providing generator
|
This must always match in order for the app to properly query if it is providing generator
|
||||||
|
|
|
@ -28,7 +28,6 @@ import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import androidx.hilt.navigation.compose.hiltViewModel
|
import androidx.hilt.navigation.compose.hiltViewModel
|
||||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||||
import com.x8bit.bitwarden.BuildConfig
|
|
||||||
import com.x8bit.bitwarden.R
|
import com.x8bit.bitwarden.R
|
||||||
import com.x8bit.bitwarden.data.platform.repository.model.UriMatchType
|
import com.x8bit.bitwarden.data.platform.repository.model.UriMatchType
|
||||||
import com.x8bit.bitwarden.ui.platform.base.util.EventsEffect
|
import com.x8bit.bitwarden.ui.platform.base.util.EventsEffect
|
||||||
|
@ -247,8 +246,6 @@ private fun AccessibilityAutofillSwitch(
|
||||||
onCheckedChange: () -> Unit,
|
onCheckedChange: () -> Unit,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
// TODO: This should be visible in all variants once the feature is complete (PM-12014)
|
|
||||||
if (!BuildConfig.DEBUG) return
|
|
||||||
var shouldShowDialog by rememberSaveable { mutableStateOf(value = false) }
|
var shouldShowDialog by rememberSaveable { mutableStateOf(value = false) }
|
||||||
BitwardenWideSwitch(
|
BitwardenWideSwitch(
|
||||||
label = stringResource(id = R.string.accessibility),
|
label = stringResource(id = R.string.accessibility),
|
||||||
|
|
Loading…
Reference in a new issue