Interfaces provided via Local Composition should be immutable (#822)

This commit is contained in:
David Perez 2024-01-27 21:30:51 -06:00 committed by Álison Fernandes
parent e2cd1d5e98
commit 9fcc326df3
3 changed files with 7 additions and 2 deletions

View file

@ -1,8 +1,11 @@
package com.x8bit.bitwarden.ui.platform.manager.biometrics
import androidx.compose.runtime.Immutable
/**
* Interface to manage biometrics within the app.
*/
@Immutable
interface BiometricsManager {
/**
* Returns `true` if the device supports string biometric authentication, `false` otherwise.

View file

@ -1,11 +1,11 @@
package com.x8bit.bitwarden.ui.platform.manager.exit
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
import androidx.compose.runtime.Immutable
/**
* A manager class for handling the various ways to exit the app.
*/
@OmitFromCoverage
@Immutable
interface ExitManager {
/**
* Finishes the activity.

View file

@ -6,12 +6,14 @@ import android.os.Parcelable
import androidx.activity.compose.ManagedActivityResultLauncher
import androidx.activity.result.ActivityResult
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import kotlinx.parcelize.Parcelize
/**
* A manager class for simplifying the handling of Android Intents within a given context.
*/
@Suppress("TooManyFunctions")
@Immutable
interface IntentManager {
/**
* Start an activity using the provided [Intent].