forked from material-components/material-components-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
40 lines (35 loc) · 1.47 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
apply plugin: 'com.android.test'
dependencies {
implementation "androidx.test:core:${project.rootProject.ext.testRunnerVersion}"
implementation "androidx.test:runner:${project.rootProject.ext.testRunnerVersion}"
implementation "androidx.test:rules:${project.rootProject.ext.testRunnerVersion}"
implementation "androidx.test.espresso:espresso-accessibility:${project.rootProject.ext.espressoVersion}"
implementation "androidx.test.espresso:espresso-core:${project.rootProject.ext.espressoVersion}"
implementation "androidx.test.espresso:espresso-contrib:${project.rootProject.ext.espressoVersion}"
implementation "org.mockito:mockito-core:${project.rootProject.ext.mockitoCoreVersion}"
implementation 'com.google.dexmaker:dexmaker:1.2'
implementation 'com.google.dexmaker:dexmaker-mockito:1.2'
}
android {
defaultConfig {
testApplicationId "com.google.android.material.tests"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
minSdkVersion 21
targetSdkVersion 33
}
targetProjectPath getTransformedProjectPath('testing/java/com/google/android/material/testapp')
sourceSets {
main.setRoot('./')
main.java.srcDir 'javatests'
main.java.excludes = [
'**/animation/**',
'**/build/**',
'**/theme/**',
]
main.manifest.srcFile 'javatests/com/google/android/material/AndroidManifest.xml'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}