/
build.gradle.kts
53 lines (41 loc) · 1.68 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
45
46
47
48
49
50
51
52
53
import buildsrc.config.Deps
plugins {
buildsrc.convention.`android-library`
buildsrc.convention.`mockk-publishing`
}
description = "Mocking library for Kotlin (Android instrumented test)"
val mavenName: String by extra("MockK Android")
val mavenDescription: String by extra("${project.description}")
@Suppress("UnstableApiUsage")
android {
packagingOptions {
resources {
excludes += "META-INF/LICENSE.md"
excludes += "META-INF/LICENSE-notice.md"
}
}
defaultConfig {
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments["notAnnotation"] = "io.mockk.test.SkipInstrumentedAndroidTest"
}
sourceSets {
getByName("androidTest").assets.srcDirs("$projectDir/common/src/test/kotlin")
}
}
dependencies {
implementation(projects.modules.mockk)
implementation(projects.modules.mockkAgentApi)
implementation(projects.modules.mockkAgentAndroid)
testImplementation("junit:junit:${Deps.Versions.junit4}")
androidTestImplementation("androidx.test.espresso:espresso-core:${Deps.Versions.androidxEspresso}") {
exclude(group = "com.android.support", module = "support-annotations")
}
androidTestImplementation(kotlin("reflect"))
implementation(platform(Deps.Libs.kotlinCoroutinesBom))
implementation(Deps.Libs.kotlinCoroutinesCore)
androidTestImplementation("androidx.test:rules:${Deps.Versions.androidxTestRules}")
androidTestImplementation(kotlin("test"))
androidTestImplementation(kotlin("test-junit"))
androidTestImplementation(Deps.Libs.junitJupiter)
androidTestImplementation(Deps.Libs.junitVintageEngine)
}