mirror of
https://github.com/bitwarden/android.git
synced 2026-03-11 20:54:58 -05:00
[PM-21726] Move OmitFromCoverage to annotation module (#5214)
This commit is contained in:
@@ -38,6 +38,8 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":annotation"))
|
||||
|
||||
implementation(libs.google.hilt.android)
|
||||
ksp(libs.google.hilt.compiler)
|
||||
implementation(libs.kotlinx.coroutines.android)
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
package com.bitwarden.core.annotation
|
||||
|
||||
/**
|
||||
* Used to omit the annotated class from test coverage reporting. This should be used sparingly and
|
||||
* is intended for non-testable classes that are placed in packages along with testable ones.
|
||||
*/
|
||||
@Target(
|
||||
AnnotationTarget.CLASS,
|
||||
AnnotationTarget.FILE,
|
||||
AnnotationTarget.FUNCTION,
|
||||
)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
annotation class OmitFromCoverage
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.bitwarden.core.data.repository.util
|
||||
|
||||
import com.bitwarden.core.annotation.OmitFromCoverage
|
||||
import com.bitwarden.annotation.OmitFromCoverage
|
||||
import com.bitwarden.core.data.repository.model.DataState
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
package com.bitwarden.core.data.util
|
||||
|
||||
import com.bitwarden.core.annotation.OmitFromCoverage
|
||||
import com.bitwarden.annotation.OmitFromCoverage
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user