BIT-2402: Add Keep annotation to services used in the BitwardenAppComponentFactory (#1419)

This commit is contained in:
David Perez 2024-06-03 16:35:19 -05:00 committed by Álison Fernandes
parent 1b8ac87700
commit 04730137e8
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import android.service.autofill.FillCallback
import android.service.autofill.FillRequest import android.service.autofill.FillRequest
import android.service.autofill.SaveCallback import android.service.autofill.SaveCallback
import android.service.autofill.SaveRequest import android.service.autofill.SaveRequest
import androidx.annotation.Keep
import com.x8bit.bitwarden.data.autofill.model.AutofillAppInfo import com.x8bit.bitwarden.data.autofill.model.AutofillAppInfo
import com.x8bit.bitwarden.data.autofill.processor.AutofillProcessor import com.x8bit.bitwarden.data.autofill.processor.AutofillProcessor
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
@ -18,6 +19,7 @@ import javax.inject.Inject
* applications. * applications.
*/ */
@OmitFromCoverage @OmitFromCoverage
@Keep
@AndroidEntryPoint @AndroidEntryPoint
class BitwardenAutofillService : AutofillService() { class BitwardenAutofillService : AutofillService() {

View file

@ -3,6 +3,7 @@ package com.x8bit.bitwarden.data.autofill.fido2
import android.os.Build import android.os.Build
import android.os.CancellationSignal import android.os.CancellationSignal
import android.os.OutcomeReceiver import android.os.OutcomeReceiver
import androidx.annotation.Keep
import androidx.annotation.RequiresApi import androidx.annotation.RequiresApi
import androidx.credentials.exceptions.ClearCredentialException import androidx.credentials.exceptions.ClearCredentialException
import androidx.credentials.exceptions.CreateCredentialException import androidx.credentials.exceptions.CreateCredentialException
@ -24,6 +25,7 @@ import javax.inject.Inject
*/ */
@OmitFromCoverage @OmitFromCoverage
@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE) @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
@Keep
@AndroidEntryPoint @AndroidEntryPoint
class BitwardenFido2ProviderService : CredentialProviderService() { class BitwardenFido2ProviderService : CredentialProviderService() {