-
Notifications
You must be signed in to change notification settings - Fork 5
/
dependencies.gradle
207 lines (194 loc) · 9.8 KB
/
dependencies.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
ext {
// Android
android_compile_sdk_version = 29
android_build_tools_version = "29.0.2"
android_min_sdk_version = 22
android_target_sdk_version = 29
// Libs
rx_kotlin_version = '2.4.0'
javax_annotation_version = '1.0'
javax_inject_version = '1'
gson_version = '2.8.6'
ok_http_version = '4.3.0'
retrofit_version = '2.7.1'
dagger_version = '2.25.4'
room_version = '2.2.3'
lifecycle_version = '2.1.0'
android_scheduler_version = '2.1.0'
navigation_version = '2.2.0-rc04'
support_library_version = '1.1.0'
material_support_library_version = '1.2.0-alpha03'
constraint_layout_version = '2.0.0-beta4'
ktx_version = '1.1.0'
glide_version = '4.10.0'
swipe_refresh_version = '1.0.0'
// Testing
junit_version = '4.13'
mockK_version = '1.9.2'
assertj_version = '3.14.0'
robolectric_version = '4.3.1'
arch_core_testing_version = '2.1.0'
android_support_runner_version = '1.1.0'
androidx_text_ext = '1.1.1'
androidx_test_version = '1.3.0-alpha03'
androidx_frag_test_version = '1.1.0'
espresso_version = '3.2.0'
// ------------------------------------------------------------------------ //
// Domain Note
// ------------------------------------------------------------------------ //
// - It is a Pure Kotlin/Java library
// - It is the central layer (all other layers points in this direction)
// - It does not have any external dependencies like Android Framework
// - It holds the business logic of our application
domain = [
dependencies: [
"io.reactivex.rxjava2:rxkotlin:${rx_kotlin_version}",
"javax.annotation:jsr250-api:${javax_annotation_version}",
"javax.inject:javax.inject:${javax_inject_version}",
],
testDependencies: [
"junit:junit:${junit_version}",
"io.mockk:mockk:${mockK_version}",
"org.assertj:assertj-core:${assertj_version}",
],
]
// ------------------------------------------------------------------------ //
// Data
// ------------------------------------------------------------------------ //
data = [
dependencies: [
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}",
"io.reactivex.rxjava2:rxkotlin:${rx_kotlin_version}",
"javax.annotation:jsr250-api:${javax_annotation_version}",
"javax.inject:javax.inject:${javax_inject_version}",
],
testDependencies: [
"junit:junit:${junit_version}",
"io.mockk:mockk:${mockK_version}",
"org.assertj:assertj-core:${assertj_version}",
],
]
// ------------------------------------------------------------------------ //
// Remote
// ------------------------------------------------------------------------ //
remote = [
dependencies: [
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}",
"io.reactivex.rxjava2:rxkotlin:${rx_kotlin_version}",
"javax.annotation:jsr250-api:${javax_annotation_version}",
"javax.inject:javax.inject:${javax_inject_version}",
"com.google.code.gson:gson:${gson_version}",
"com.squareup.okhttp3:okhttp:${ok_http_version}",
"com.squareup.okhttp3:logging-interceptor:${ok_http_version}",
"com.squareup.retrofit2:retrofit:${retrofit_version}",
"com.squareup.retrofit2:converter-gson:${retrofit_version}",
"com.squareup.retrofit2:adapter-rxjava2:${retrofit_version}",
"com.google.dagger:dagger:${dagger_version}",
],
testDependencies: [
"junit:junit:${junit_version}",
"io.mockk:mockk:${mockK_version}",
"org.assertj:assertj-core:${assertj_version}",
],
]
// ------------------------------------------------------------------------ //
// Cache
// ------------------------------------------------------------------------ //
cache = [
dependencies: [
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}",
"io.reactivex.rxjava2:rxkotlin:${rx_kotlin_version}",
"javax.inject:javax.inject:${javax_inject_version}",
"androidx.room:room-runtime:${room_version}",
"androidx.room:room-rxjava2:${room_version}",
"com.google.dagger:dagger:${dagger_version}",
],
testDependencies: [
"junit:junit:${junit_version}",
"io.mockk:mockk:${mockK_version}",
"org.assertj:assertj-core:${assertj_version}",
"androidx.test:core:${androidx_test_version}",
"androidx.arch.core:core-testing:${arch_core_testing_version}"
],
compilers: [
"com.google.dagger:dagger-android-processor:${dagger_version}",
"com.google.dagger:dagger-compiler:${dagger_version}",
"androidx.room:room-compiler:${room_version}",
],
]
// ------------------------------------------------------------------------ //
// Presentation
// ------------------------------------------------------------------------ //
presentation = [
dependencies: [
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}",
"io.reactivex.rxjava2:rxkotlin:${rx_kotlin_version}",
"javax.inject:javax.inject:${javax_inject_version}",
"com.google.dagger:dagger:${dagger_version}",
"androidx.lifecycle:lifecycle-extensions:$lifecycle_version",
"androidx.lifecycle:lifecycle-reactivestreams-ktx:$lifecycle_version",
"io.reactivex.rxjava2:rxandroid:$android_scheduler_version",
],
testDependencies: [
"junit:junit:${junit_version}",
"io.mockk:mockk:${mockK_version}",
"org.assertj:assertj-core:${assertj_version}",
"androidx.test:core:${androidx_test_version}",
"androidx.arch.core:core-testing:${arch_core_testing_version}"
],
compilers: [
"com.google.dagger:dagger-android-processor:${dagger_version}",
"com.google.dagger:dagger-compiler:${dagger_version}",
"androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
],
]
// ------------------------------------------------------------------------ //
// MobileUI
// ------------------------------------------------------------------------ //
mobileUI = [
dependencies: [
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}",
"io.reactivex.rxjava2:rxkotlin:${rx_kotlin_version}",
"javax.inject:javax.inject:${javax_inject_version}",
"com.google.dagger:dagger:${dagger_version}",
"com.google.dagger:dagger-android-support:${dagger_version}",
"io.reactivex.rxjava2:rxandroid:$android_scheduler_version",
"com.github.bumptech.glide:glide:${glide_version}",
"androidx.room:room-runtime:${room_version}",
"androidx.room:room-rxjava2:${room_version}",
"androidx.lifecycle:lifecycle-extensions:$lifecycle_version",
"androidx.lifecycle:lifecycle-reactivestreams-ktx:$lifecycle_version",
"androidx.navigation:navigation-fragment-ktx:$navigation_version",
"androidx.navigation:navigation-ui-ktx:$navigation_version",
"androidx.appcompat:appcompat:$support_library_version",
"androidx.recyclerview:recyclerview:$support_library_version",
"androidx.swiperefreshlayout:swiperefreshlayout:${swipe_refresh_version}",
"androidx.constraintlayout:constraintlayout:$constraint_layout_version",
"androidx.constraintlayout:constraintlayout-solver:$constraint_layout_version",
"androidx.core:core-ktx:$ktx_version",
"com.google.android.material:material:$material_support_library_version",
],
testDependencies: [
"junit:junit:${junit_version}",
"io.mockk:mockk:${mockK_version}",
"org.assertj:assertj-core:${assertj_version}",
"androidx.test:core:${androidx_test_version}",
"androidx.arch.core:core-testing:${arch_core_testing_version}"
],
androidTestDependencies: [
"androidx.test:core:${androidx_test_version}",
"androidx.test:runner:${androidx_test_version}",
"androidx.test:rules:${androidx_test_version}",
"androidx.test.ext:junit:1.1.1",
"androidx.test.espresso:espresso-core:$espresso_version",
"androidx.test.espresso:espresso-contrib:$espresso_version",
"androidx.arch.core:core-testing:${arch_core_testing_version}",
"io.mockk:mockk-android:${mockK_version}",
],
compilers: [
"com.google.dagger:dagger-android-processor:${dagger_version}",
"com.google.dagger:dagger-compiler:${dagger_version}",
"androidx.lifecycle:lifecycle-compiler:$lifecycle_version",
],
]
}