forked from LondonSquad/Novix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
111 lines (97 loc) · 3.4 KB
/
build.gradle.kts
File metadata and controls
111 lines (97 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
@file:Suppress("OPT_IN_USAGE")
import com.london.buildsrc.AppConfig
import com.london.buildsrc.configureGitHooks
import org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.jetbrains.kotlin.jvm) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.google.firebase.firebase.perf) apply false
alias(libs.plugins.google.gms.google.services) apply false
alias(libs.plugins.google.firebase.crashlytics) apply false
alias(libs.plugins.kotlinx.kover)
}
subprojects {
plugins.withId("org.jetbrains.kotlin.android") {
extensions.configure<KotlinAndroidProjectExtension> {
compilerOptions {
freeCompilerArgs.addAll(AppConfig.freeCompilerArgs)
}
}
}
}
allprojects {
apply(plugin = "org.jetbrains.kotlinx.kover")
kover {
reports {
filters {
includes {
classes(
"*UseCase",
"*ViewModel",
"*RepositoryImpl",
)
}
excludes {
annotatedBy("com.london.domain.KoverIgnore")
annotatedBy("*Composable")
classes(
"**.model.**",
"**.di.**",
"**.exception.**",
"**.exceptions.**",
"**.mapper.**",
"**.ui.**",
"**.entity.**",
"**.local.**",
"**.build.**",
"dagger.hilt.internal.aggregatedroot.codegen.*",
"hilt_aggregated_deps.*",
"*_HiltModules*",
"**HiltModules**",
"*Hilt_*",
"*_Factory*",
"*BuildConfig*",
"**/*_AutoGenerated*",
"**/*_Impl*",
"**/*_Binder*",
"**/*_Component*",
"*.R",
"*.R_*",
"*.BuildConfig*",
"*.Manifest*",
"*.ComposableSingletons*",
"*.MainActivity*",
"*.NovixApplication*",
"*.NovixApp*",
"com.london.designsystem*",
"com.london.imageharamblur*",
"entity.**",
"**.dao.**",
"**.dto.**",
"**.response.**",
"exceptions.**",
)
}
}
total {
verify {
rule {
bound { minValue = 55 }
}
}
}
}
}
}
dependencies {
kover(projects.domain)
kover(projects.data)
kover(projects.presentation)
}
configureGitHooks()