forked from flutter/plugins
/
build.gradle
89 lines (72 loc) · 2.36 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
group 'com.example.espresso'
version '1.0'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 31
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
disable 'GradleDependency'
baseline file("lint-baseline.xml")
}
testOptions {
unitTests.includeAndroidResources = true
unitTests.returnDefaultValues = true
unitTests.all {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
}
}
dependencies {
implementation 'com.google.guava:guava:31.1-android'
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.google.code.gson:gson:2.8.6'
androidTestImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'junit:junit:4.12'
testImplementation "com.google.truth:truth:1.0"
api 'androidx.test:runner:1.1.1'
api 'androidx.test.espresso:espresso-core:3.1.1'
// Core library
api 'androidx.test:core:1.0.0'
// AndroidJUnitRunner and JUnit Rules
api 'androidx.test:runner:1.1.0'
api 'androidx.test:rules:1.1.0'
// Assertions
api 'androidx.test.ext:junit:1.1.3'
api 'androidx.test.ext:truth:1.4.0'
api 'com.google.truth:truth:0.42'
// Espresso dependencies
api 'androidx.test.espresso:espresso-core:3.1.0'
api 'androidx.test.espresso:espresso-contrib:3.1.0'
api 'androidx.test.espresso:espresso-intents:3.1.0'
api 'androidx.test.espresso:espresso-accessibility:3.1.0'
api 'androidx.test.espresso:espresso-web:3.1.0'
api 'androidx.test.espresso.idling:idling-concurrent:3.1.0'
// The following Espresso dependency can be either "implementation"
// or "androidTestImplementation", depending on whether you want the
// dependency to appear on your APK's compile classpath or the test APK
// classpath.
api 'androidx.test.espresso:espresso-idling-resource:3.1.0'
}