mirror of
https://github.com/bitwarden/android.git
synced 2025-03-16 03:08:50 +03:00
Update Kover to 0.8.0. (#1396)
This commit is contained in:
parent
163404d6ac
commit
bd099fd4ee
6 changed files with 62 additions and 36 deletions
|
@ -190,39 +190,56 @@ detekt {
|
|||
}
|
||||
|
||||
kover {
|
||||
excludeJavaCode()
|
||||
}
|
||||
|
||||
koverReport {
|
||||
filters {
|
||||
excludes {
|
||||
annotatedBy(
|
||||
// Compose previews
|
||||
"androidx.compose.ui.tooling.preview.Preview",
|
||||
// Manually excluded classes/files/etc.
|
||||
"com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage"
|
||||
)
|
||||
classes(
|
||||
// Navigation helpers
|
||||
"*.*NavigationKt*",
|
||||
// Composable singletons
|
||||
"*.*ComposableSingletons*",
|
||||
// Generated classes related to interfaces with default values
|
||||
"*.*DefaultImpls*",
|
||||
// Databases
|
||||
"*.database.*Database*",
|
||||
"*.dao.*Dao*",
|
||||
)
|
||||
packages(
|
||||
// Dependency injection
|
||||
"*.di",
|
||||
// Models
|
||||
"*.model",
|
||||
// Custom UI components
|
||||
"com.x8bit.bitwarden.ui.platform.components",
|
||||
// Theme-related code
|
||||
"com.x8bit.bitwarden.ui.platform.theme",
|
||||
)
|
||||
currentProject {
|
||||
sources {
|
||||
excludeJava = true
|
||||
}
|
||||
}
|
||||
reports {
|
||||
filters {
|
||||
excludes {
|
||||
androidGeneratedClasses()
|
||||
annotatedBy(
|
||||
// Compose previews
|
||||
"androidx.compose.ui.tooling.preview.Preview",
|
||||
// Manually excluded classes/files/etc.
|
||||
"com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage",
|
||||
)
|
||||
classes(
|
||||
// Navigation helpers
|
||||
"*.*NavigationKt*",
|
||||
// Composable singletons
|
||||
"*.*ComposableSingletons*",
|
||||
// Generated classes related to interfaces with default values
|
||||
"*.*DefaultImpls*",
|
||||
// Databases
|
||||
"*.database.*Database*",
|
||||
"*.dao.*Dao*",
|
||||
// Dagger Hilt
|
||||
"dagger.hilt.*",
|
||||
"hilt_aggregated_deps.*",
|
||||
"*_Factory",
|
||||
"*_Factory\$*",
|
||||
"*_*Factory",
|
||||
"*_*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")
|
||||
@OmitFromCoverage
|
||||
private class AndroidKeyStore(
|
||||
private val legacySecureStorage: LegacySecureStorage,
|
||||
private val sharedPreferences: SharedPreferences,
|
||||
|
|
|
@ -5,12 +5,16 @@ import android.content.Context
|
|||
import android.content.Context.CLIPBOARD_SERVICE
|
||||
import androidx.work.Worker
|
||||
import androidx.work.WorkerParameters
|
||||
import com.x8bit.bitwarden.data.platform.annotation.OmitFromCoverage
|
||||
|
||||
/**
|
||||
* A worker to clear the clipboard manager.
|
||||
*/
|
||||
class ClearClipboardWorker(appContext: Context, workerParams: WorkerParameters) :
|
||||
Worker(appContext, workerParams) {
|
||||
@OmitFromCoverage
|
||||
class ClearClipboardWorker(
|
||||
appContext: Context,
|
||||
workerParams: WorkerParameters,
|
||||
) : Worker(appContext, workerParams) {
|
||||
|
||||
private val clipboardManager =
|
||||
appContext.getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@file:OmitFromCoverage
|
||||
|
||||
package com.x8bit.bitwarden.ui.platform.composition
|
||||
|
||||
import android.app.Activity
|
||||
|
@ -7,6 +9,7 @@ import androidx.compose.runtime.CompositionLocalProvider
|
|||
import androidx.compose.runtime.ProvidableCompositionLocal
|
||||
import androidx.compose.runtime.compositionLocalOf
|
||||
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.BiometricsManagerImpl
|
||||
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.
|
||||
*/
|
||||
@OmitFromCoverage
|
||||
private fun ByteBuffer.toByteArray(): ByteArray =
|
||||
ByteArray(rewind().remaining()).also { get(it) }
|
||||
|
|
|
@ -41,7 +41,7 @@ kotlinCompilerExtensionVersion = "1.5.14"
|
|||
kotlinxCollectionsImmutable = "0.3.7"
|
||||
kotlinxCoroutines = "1.8.1"
|
||||
kotlinxSerialization = "1.6.3"
|
||||
kotlinxKover = "0.7.6"
|
||||
kotlinxKover = "0.8.0"
|
||||
ksp = "1.9.24-1.0.20"
|
||||
mockk = "1.13.11"
|
||||
okhttp = "4.12.0"
|
||||
|
|
Loading…
Add table
Reference in a new issue