-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
129 lines (109 loc) · 4.68 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
// global variables
compile_sdk_version = 30
kotlin_version = "1.3.72"
min_sdk_version = 21
jacoco_version = '0.8.4'
// local variables (use def)
def activity_version = "1.2.0"
def androidx_test_version = '1.2.0'
def androidx_core_ktx = '1.3.2'
def androidx_hilt_version = '1.0.0-alpha01'
def androidXTestExtKotlinRunnerVersion = '1.1.1'
def appcompat_version = '1.2.0'
def apollo_version = '2.2.0'
def constraint_layout_version = '2.0.4'
def coroutines_android_version = '1.4.2'
def dagger_hilt_version = '2.28-alpha'
def expresso_version = '3.2.0'
def junit_version = '4.12'
def lifecycle_version = '2.1.0'
def livedata_version = '2.2.0-rc02'
def lottie_version = '3.6.0'
def material_version = '1.3.0'
def robolectricVersion = '4.3.1'
def truth_version = '1.1.2'
apolloDependencies = [
"com.apollographql.apollo:apollo-runtime:$apollo_version",
"com.apollographql.apollo:apollo-coroutines-support:$apollo_version"
]
base = [
"org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version",
"androidx.core:core-ktx:$androidx_core_ktx",
"androidx.appcompat:appcompat:$appcompat_version",
"com.google.android.material:material:$material_version",
"androidx.constraintlayout:constraintlayout:$constraint_layout_version",
"androidx.activity:activity-ktx:$activity_version"
]
coroutines = [
// Coroutines
"org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_android_version",
"org.jetbrains.kotlinx:kotlinx-coroutines-android:${coroutines_android_version}"
]
hilt = [
"androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha01",
"com.google.dagger:hilt-android:2.28-alpha"
]
lifecycle = [
// ViewModel and LiveData
"androidx.lifecycle:lifecycle-extensions:$lifecycle_version",
"androidx.lifecycle:lifecycle-livedata-ktx:$livedata_version",
"androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version",
]
lottieAnimations = [
"com.airbnb.android:lottie:$lottie_version"
]
kaptLibraries = [
'androidx.hilt:hilt-compiler:1.0.0-alpha01',
"com.google.dagger:hilt-android-compiler:2.28-alpha"
]
testLibraries = [
"junit:junit:$junit_version",
// Coroutines testing
"org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_android_version",
// mocks
"org.mockito:mockito-core:2.23.0",
// Architecture Components testing libraries
"androidx.arch.core:core-testing:$lifecycle_version",
"com.google.truth:truth:$truth_version",
"org.robolectric:robolectric:$robolectricVersion",
"androidx.test.ext:junit-ktx:$androidXTestExtKotlinRunnerVersion"
]
androidTestLibraries = [
"androidx.test.ext:junit:$androidXTestExtKotlinRunnerVersion",
"org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_android_version",
"junit:junit:$junit_version",
"androidx.test:runner:$androidx_test_version",
"androidx.test:rules:$androidx_test_version",
// Espresso
"androidx.test.espresso:espresso-core:$expresso_version",
"androidx.test.espresso:espresso-contrib:$expresso_version",
"androidx.test.espresso:espresso-intents:$expresso_version",
// Architecture Components testing libraries
"androidx.arch.core:core-testing:$lifecycle_version",
"com.google.dagger:hilt-android-testing:2.28-alpha"
]
}
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.28-alpha'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}