diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/login/LoginNavigation.kt b/app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/login/LoginNavigation.kt index 6612fe59a..f7015bc53 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/login/LoginNavigation.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/auth/feature/login/LoginNavigation.kt @@ -7,6 +7,7 @@ import androidx.navigation.NavOptions import androidx.navigation.NavType import androidx.navigation.compose.composable import androidx.navigation.navArgument +import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage import com.x8bit.bitwarden.ui.platform.theme.TransitionProviders private const val EMAIL_ADDRESS: String = "email_address" @@ -16,6 +17,7 @@ private const val LOGIN_ROUTE: String = "login/{$EMAIL_ADDRESS}?$CAPTCHA_TOKEN={ /** * Class to retrieve login arguments from the [SavedStateHandle]. */ +@OmitFromCoverage class LoginArgs(val emailAddress: String, val captchaToken: String?) { constructor(savedStateHandle: SavedStateHandle) : this( checkNotNull(savedStateHandle[EMAIL_ADDRESS]) as String, diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemNavigation.kt b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemNavigation.kt index 7c224576c..8e8ff3a3e 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemNavigation.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/item/VaultItemNavigation.kt @@ -7,6 +7,7 @@ import androidx.navigation.NavOptions import androidx.navigation.NavType import androidx.navigation.compose.composable import androidx.navigation.navArgument +import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage import com.x8bit.bitwarden.ui.platform.theme.TransitionProviders private const val VAULT_ITEM_PREFIX = "vault_item" @@ -16,6 +17,7 @@ private const val VAULT_ITEM_ROUTE = "$VAULT_ITEM_PREFIX/{$VAULT_ITEM_ID}" /** * Class to retrieve vault item arguments from the [SavedStateHandle]. */ +@OmitFromCoverage class VaultItemArgs(val vaultItemId: String) { constructor(savedStateHandle: SavedStateHandle) : this( checkNotNull(savedStateHandle[VAULT_ITEM_ID]) as String,