-
-
Notifications
You must be signed in to change notification settings - Fork 332
/
build.gradle
68 lines (57 loc) · 2.32 KB
/
build.gradle
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
ext {
mavenName = 'MockK Android'
mavenDescription = 'mocking library for Kotlin (Android instrumented test)'
}
apply plugin: 'com.android.library'
apply from: "${gradles}/android-module.gradle"
apply from: "${gradles}/upload.gradle"
android {
compileSdkVersion 'android-28'
buildToolsVersion android_build_tools_version
lintOptions {
abortOnError false
disable 'InvalidPackage'
warning 'NewApi'
}
packagingOptions {
exclude 'META-INF/main.kotlin_module'
exclude 'META-INF/LICENSE.md'
exclude 'META-INF/LICENSE-notice.md'
}
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionName project['version']
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArgument "notAnnotation", "io.mockk.test.SkipInstrumentedAndroidTest"
}
sourceSets {
androidTest.kotlin.srcDirs += '../common/src/test/kotlin'
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
dependencies {
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// very weird hack to make it working in IDE (check settings.gradle)
def mockKProject = findProject(':mockk-jvm') ?: project(":mockk")
api(mockKProject, {
exclude group: 'io.mockk', module: 'mockk-agent-jvm'
})
implementation project(":mockk-agent-android")
implementation project(":mockk-agent-api")
testImplementation 'junit:junit:4.13.1'
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
androidTestImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version") {
exclude group: "junit", module: "junit"
}
androidTestImplementation "org.junit.jupiter:junit-jupiter-api:$junit_jupiter_version"
androidTestImplementation "org.junit.jupiter:junit-jupiter-engine:$junit_jupiter_version"
androidTestImplementation "org.junit.vintage:junit-vintage-engine:$junit_vintage_version"
}