mirror of
https://github.com/bitwarden/android.git
synced 2025-03-15 18:58:59 +03:00
Interfaces provided via Local Composition should be immutable (#822)
This commit is contained in:
parent
e2cd1d5e98
commit
9fcc326df3
3 changed files with 7 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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].
|
||||
|
|
Loading…
Add table
Reference in a new issue