-
-
Notifications
You must be signed in to change notification settings - Fork 332
/
android-ait-before-p.gradle
92 lines (75 loc) · 2.82 KB
/
android-ait-before-p.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
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
buildscript {
ext.kotlin_version = '1.4.20'
ext.kotlin_gradle_version = '1.4.20'
ext.android_gradle_version = '3.1.2'
ext.coroutines_version = '0.27.0-eap13'
ext.junit_jupiter_version = '5.6.2'
ext.junit_vintage_version = '5.6.2'
ext.mockk_version = '1.8.8-SNAPSHOT'
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_gradle_version"
classpath "com.android.tools.build:gradle:$android_gradle_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
}
}
repositories {
mavenLocal()
mavenCentral()
google()
jcenter()
maven { url 'https://jitpack.io' }
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 'android-28'
buildToolsVersion '27.0.3'
lintOptions {
disable 'InvalidPackage'
warning 'NewApi'
abortOnError false
}
packagingOptions {
exclude 'META-INF/main.kotlin_module'
exclude 'META-INF/LICENSE.md'
exclude 'META-INF/LICENSE-notice.md'
}
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionName "1"
testInstrumentationRunner 'com.github.tmurakami.dexopener.DexOpenerAndroidJUnitRunner'
}
sourceSets {
test.kotlin.srcDirs += '../common/src/test/kotlin'
androidTest.kotlin.srcDirs += '../common/src/test/kotlin'
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
dependencies {
testImplementation "io.mockk:mockk:${mockk_version}"
testImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version") {
exclude group: "junit", module: "junit"
}
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_jupiter_version"
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junit_jupiter_version"
testImplementation "org.junit.vintage:junit-vintage-engine:$junit_vintage_version"
androidTestImplementation "io.mockk:mockk-android:${mockk_version}"
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")
androidTestImplementation 'com.github.tmurakami:dexopener:0.12.1'
}