mirror of
https://github.com/bitwarden/android.git
synced 2026-03-21 13:52:07 -05:00
Update Kover to 0.8.0. (#1396)
This commit is contained in:
committed by
Álison Fernandes
parent
163404d6ac
commit
bd099fd4ee
@@ -190,39 +190,56 @@ detekt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kover {
|
kover {
|
||||||
excludeJavaCode()
|
currentProject {
|
||||||
}
|
sources {
|
||||||
|
excludeJava = true
|
||||||
koverReport {
|
}
|
||||||
filters {
|
}
|
||||||
excludes {
|
reports {
|
||||||
annotatedBy(
|
filters {
|
||||||
// Compose previews
|
excludes {
|
||||||
"androidx.compose.ui.tooling.preview.Preview",
|
androidGeneratedClasses()
|
||||||
// Manually excluded classes/files/etc.
|
annotatedBy(
|
||||||
"com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage"
|
// Compose previews
|
||||||
)
|
"androidx.compose.ui.tooling.preview.Preview",
|
||||||
classes(
|
// Manually excluded classes/files/etc.
|
||||||
// Navigation helpers
|
"com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage",
|
||||||
"*.*NavigationKt*",
|
)
|
||||||
// Composable singletons
|
classes(
|
||||||
"*.*ComposableSingletons*",
|
// Navigation helpers
|
||||||
// Generated classes related to interfaces with default values
|
"*.*NavigationKt*",
|
||||||
"*.*DefaultImpls*",
|
// Composable singletons
|
||||||
// Databases
|
"*.*ComposableSingletons*",
|
||||||
"*.database.*Database*",
|
// Generated classes related to interfaces with default values
|
||||||
"*.dao.*Dao*",
|
"*.*DefaultImpls*",
|
||||||
)
|
// Databases
|
||||||
packages(
|
"*.database.*Database*",
|
||||||
// Dependency injection
|
"*.dao.*Dao*",
|
||||||
"*.di",
|
// Dagger Hilt
|
||||||
// Models
|
"dagger.hilt.*",
|
||||||
"*.model",
|
"hilt_aggregated_deps.*",
|
||||||
// Custom UI components
|
"*_Factory",
|
||||||
"com.x8bit.bitwarden.ui.platform.components",
|
"*_Factory\$*",
|
||||||
// Theme-related code
|
"*_*Factory",
|
||||||
"com.x8bit.bitwarden.ui.platform.theme",
|
"*_*Factory\$*",
|
||||||
)
|
"*.Hilt_*",
|
||||||
|
"*_HiltModules",
|
||||||
|
"*_HiltModules\$*",
|
||||||
|
"*_Impl",
|
||||||
|
"*_Impl\$*",
|
||||||
|
"*_MembersInjector",
|
||||||
|
)
|
||||||
|
packages(
|
||||||
|
// Dependency injection
|
||||||
|
"*.di",
|
||||||
|
// Models
|
||||||
|
"*.model",
|
||||||
|
// Custom UI components
|
||||||
|
"com.x8bit.bitwarden.ui.platform.components",
|
||||||
|
// Theme-related code
|
||||||
|
"com.x8bit.bitwarden.ui.platform.theme",
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ class LegacySecureStorageImpl(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("MagicNumber")
|
@Suppress("MagicNumber")
|
||||||
|
@OmitFromCoverage
|
||||||
private class AndroidKeyStore(
|
private class AndroidKeyStore(
|
||||||
private val legacySecureStorage: LegacySecureStorage,
|
private val legacySecureStorage: LegacySecureStorage,
|
||||||
private val sharedPreferences: SharedPreferences,
|
private val sharedPreferences: SharedPreferences,
|
||||||
|
|||||||
@@ -5,12 +5,16 @@ import android.content.Context
|
|||||||
import android.content.Context.CLIPBOARD_SERVICE
|
import android.content.Context.CLIPBOARD_SERVICE
|
||||||
import androidx.work.Worker
|
import androidx.work.Worker
|
||||||
import androidx.work.WorkerParameters
|
import androidx.work.WorkerParameters
|
||||||
|
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A worker to clear the clipboard manager.
|
* A worker to clear the clipboard manager.
|
||||||
*/
|
*/
|
||||||
class ClearClipboardWorker(appContext: Context, workerParams: WorkerParameters) :
|
@OmitFromCoverage
|
||||||
Worker(appContext, workerParams) {
|
class ClearClipboardWorker(
|
||||||
|
appContext: Context,
|
||||||
|
workerParams: WorkerParameters,
|
||||||
|
) : Worker(appContext, workerParams) {
|
||||||
|
|
||||||
private val clipboardManager =
|
private val clipboardManager =
|
||||||
appContext.getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
|
appContext.getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
@file:OmitFromCoverage
|
||||||
|
|
||||||
package com.x8bit.bitwarden.ui.platform.composition
|
package com.x8bit.bitwarden.ui.platform.composition
|
||||||
|
|
||||||
import android.app.Activity
|
import android.app.Activity
|
||||||
@@ -7,6 +9,7 @@ import androidx.compose.runtime.CompositionLocalProvider
|
|||||||
import androidx.compose.runtime.ProvidableCompositionLocal
|
import androidx.compose.runtime.ProvidableCompositionLocal
|
||||||
import androidx.compose.runtime.compositionLocalOf
|
import androidx.compose.runtime.compositionLocalOf
|
||||||
import androidx.compose.ui.platform.LocalContext
|
import androidx.compose.ui.platform.LocalContext
|
||||||
|
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
|
||||||
import com.x8bit.bitwarden.ui.platform.manager.biometrics.BiometricsManager
|
import com.x8bit.bitwarden.ui.platform.manager.biometrics.BiometricsManager
|
||||||
import com.x8bit.bitwarden.ui.platform.manager.biometrics.BiometricsManagerImpl
|
import com.x8bit.bitwarden.ui.platform.manager.biometrics.BiometricsManagerImpl
|
||||||
import com.x8bit.bitwarden.ui.platform.manager.exit.ExitManager
|
import com.x8bit.bitwarden.ui.platform.manager.exit.ExitManager
|
||||||
|
|||||||
@@ -68,5 +68,6 @@ class QrCodeAnalyzerImpl : QrCodeAnalyzer {
|
|||||||
/**
|
/**
|
||||||
* This function helps us prepare the byte buffer to be read.
|
* This function helps us prepare the byte buffer to be read.
|
||||||
*/
|
*/
|
||||||
|
@OmitFromCoverage
|
||||||
private fun ByteBuffer.toByteArray(): ByteArray =
|
private fun ByteBuffer.toByteArray(): ByteArray =
|
||||||
ByteArray(rewind().remaining()).also { get(it) }
|
ByteArray(rewind().remaining()).also { get(it) }
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ kotlinCompilerExtensionVersion = "1.5.14"
|
|||||||
kotlinxCollectionsImmutable = "0.3.7"
|
kotlinxCollectionsImmutable = "0.3.7"
|
||||||
kotlinxCoroutines = "1.8.1"
|
kotlinxCoroutines = "1.8.1"
|
||||||
kotlinxSerialization = "1.6.3"
|
kotlinxSerialization = "1.6.3"
|
||||||
kotlinxKover = "0.7.6"
|
kotlinxKover = "0.8.0"
|
||||||
ksp = "1.9.24-1.0.20"
|
ksp = "1.9.24-1.0.20"
|
||||||
mockk = "1.13.11"
|
mockk = "1.13.11"
|
||||||
okhttp = "4.12.0"
|
okhttp = "4.12.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user