This repository was archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (50 loc) · 2.47 KB
/
Copy pathbuild.gradle
File metadata and controls
63 lines (50 loc) · 2.47 KB
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
apply from: "${project.rootDir}/androidLib.gradle"
android {
buildFeatures {
viewBinding true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation parent.ext.kotlin
implementation parent.ext.ktxCore
implementation parent.ext.appCompat
testImplementation 'junit:junit:4.13.2'
androidTestImplementation parent.ext.appCompat
androidTestImplementation parent.ext.testCore
androidTestImplementation project(':test')
androidTestImplementation 'org.hamcrest:hamcrest-library:2.2'
androidTestImplementation 'org.mockito:mockito-android:2.7.22'
androidTestImplementation 'org.mockito:mockito-core:2.23.0'
def androidTestExclusions = { lib, pairs ->
androidTestImplementation(lib) {
pairs.each { exclude group: "${it.first}", module: "${it.second}" }
}
}
List exclusions = [
new Tuple2('androidx.appcompat', 'appcompat'),
new Tuple2('androidx.core', 'core'),
new Tuple2('androidx.activity', 'activity'),
new Tuple2('androidx.fragment', 'fragment'),
new Tuple2('androidx.loader', 'loader'),
new Tuple2('androidx.recyclerview', 'recyclerview'),
new Tuple2('androidx.viewpager2', 'viewpager2'),
new Tuple2('androidx.savedstate', 'savedstate'),
new Tuple2('androidx.lifecycle', 'lifecycle-livedata'),
new Tuple2('androidx.lifecycle', 'lifecycle-common'),
new Tuple2('androidx.lifecycle', 'lifecycle-viewmodel'),
new Tuple2('androidx.lifecycle', 'lifecycle-livedata-core'),
new Tuple2('androidx.lifecycle', 'lifecycle-runtime'),
new Tuple2('androidx.arch.core', 'core-runtime'),
new Tuple2('com.google.android.material', 'material')
]
androidTestExclusions('androidx.test:core:1.3.0', exclusions)
androidTestExclusions('androidx.test.ext:junit:1.1.2', exclusions)
androidTestExclusions('androidx.test:runner:1.3.0', exclusions)
androidTestExclusions('androidx.test:rules:1.3.0', exclusions)
androidTestExclusions('androidx.test:runner:1.3.0', exclusions)
androidTestExclusions('org.robolectric:robolectric:4.5.1', exclusions)
androidTestExclusions('androidx.test.espresso:espresso-core:3.3.0', exclusions)
androidTestExclusions('androidx.test.espresso:espresso-contrib:3.5.1', exclusions)
androidTestExclusions('androidx.test.espresso:espresso-intents:3.3.0', exclusions)
}