forked from ologe/canaree-music-player
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase_module.gradle
92 lines (72 loc) · 2.47 KB
/
base_module.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
apply plugin: 'kotlin-android'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
debuggable false
}
debug {
// debuggable false
}
}
flavorDimensions "version"
productFlavors {
mock {
dimension "version"
}
full {
dimension "version"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dexOptions {
preDexLibraries true
}
useLibrary 'android.test.runner'
useLibrary 'android.test.base'
useLibrary 'android.test.mock'
testOptions {
unitTests{
returnDefaultValues = true
includeAndroidResources = true
}
}
}
dependencies {
implementation lib_core.kotlin
implementation lib_core.coroutines
implementation lib_core.coroutines_android
testImplementation lib_core.coroutines_test
testImplementation project (':test-shared')
androidTestImplementation project (':test-shared')
// testImplementation 'junit:junit:4.12'
// testImplementation "org.mockito:mockito-core:2.23.4"
// androidTestImplementation 'androidx.test.ext:junit:1.1.1'
// Core library
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.23.4'
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0"
androidTestImplementation 'androidx.test:core:1.2.0'
// AndroidJUnitRunner and JUnit Rules
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test:rules:1.2.0'
// Assertions
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
// androidTestImplementation 'androidx.test.ext:truth:1.2.0'
// androidTestImplementation 'com.google.truth:truth:0.44'
// Espresso dependencies
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test.espresso.idling:idling-concurrent:3.2.0'
}