-
-
Notifications
You must be signed in to change notification settings - Fork 128
/
build.gradle.kts
44 lines (37 loc) · 1.23 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
38
39
40
41
42
43
44
import kotlinx.validation.ExperimentalBCVApi
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.binary.compatibility.validator)
}
apiValidation {
ignoredProjects.addAll(
listOf(
"multiplatform",
"shared",
"androidApp",
"desktopApp",
"android",
"java"
)
)
@OptIn(ExperimentalBCVApi::class)
klib {
enabled = true
strictValidation = true
}
}
allprojects {
val rootDir = "${rootProject.rootDir.path}/rssparser/src/commonTest/resources"
tasks.withType<Test>().configureEach {
environment("TEST_RESOURCES_ROOT", rootDir)
}
tasks.withType<KotlinNativeTest>().configureEach {
environment("TEST_RESOURCES_ROOT", rootDir)
// https://stackoverflow.com/questions/34618580/xcrun-is-there-a-way-to-set-environment-variable-via-xcrun-simctl-cli/53604237#53604237
environment("SIMCTL_CHILD_TEST_RESOURCES_ROOT", rootDir)
}
}