-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
38 lines (33 loc) · 1.25 KB
/
build.gradle.kts
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.jetbrainsKotlinAndroid) apply false
alias(libs.plugins.kotlinKapt) apply false
alias(libs.plugins.org.jetbrains.kotlin.jvm) apply false
id("com.google.gms.google-services") version "4.4.0" apply false
id("com.google.firebase.crashlytics") version "2.9.9" apply false
id("com.google.firebase.appdistribution") version "4.0.1" apply false
id("androidx.navigation.safeargs.kotlin") version "2.7.6" apply false
id("com.google.dagger.hilt.android") version "2.50" apply false
java
}
apply(plugin = "android-reporting")
// for unit tests report aggregation
val testReport = tasks.register("testReport", TestReport::class) {
outputs.upToDateWhen { false }
destinationDir = file("$buildDir/reports/unitTests")
subprojects {
reportOn(project.tasks.withType<Test>().map { it.binaryResultsDirectory })
}
}
tasks.withType<Test> {
useJUnitPlatform()
finalizedBy(testReport)
ignoreFailures = true
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.withType<Test>().configureEach {
maxParallelForks = 3
}