-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandroidconfig.gradle
47 lines (38 loc) · 1.43 KB
/
androidconfig.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
android {
def globalConfiguration = rootProject.extensions.getByName("ext")
compileSdkVersion globalConfiguration["androidCompileSdkVersion"]
buildToolsVersion globalConfiguration["androidBuildToolsVersion"]
defaultConfig {
minSdkVersion globalConfiguration["androidMinSdkVersion"]
targetSdkVersion globalConfiguration["androidTargetSdkVersion"]
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
kotlinOptions {
jvmTarget = "1.8"
}
dataBinding {
enabled = true
enabledForTests = true
}
// Always show the result of every unit test when running via command line, even if it passes.
testOptions.unitTests {
includeAndroidResources = true
returnDefaultValues = true
}
testOptions.unitTests.all {
jvmArgs "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap"
}
}
dependencies {
// unit tests
testImplementation rootProject.ext.unitTestDependencies.androidxJunit
testImplementation rootProject.ext.unitTestDependencies.mockito
// android tests
androidTestImplementation rootProject.ext.androidTestDependencies.junit
androidTestImplementation rootProject.ext.androidTestDependencies.mockito
androidTestImplementation rootProject.ext.androidTestDependencies.espressoCore
}