-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversions.gradle
119 lines (96 loc) · 4.5 KB
/
versions.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
def versions = [:]
def deps = [:]
versions.constraintlayout = '2.1.0'
versions.material = '1.8.0'
versions.appcompat = '1.6.1'
versions.junit_java = '4.13.2'
versions.junit_android = '1.1.5'
versions.espresso = '3.5.1'
versions.room = "2.4.2"
versions.okhttp = '4.11.0'
versions.gson = '2.10.1'
versions.navigation = '2.6.0'
versions.hilt = '2.39.1'
versions.retrofit = "2.9.0"
versions.ktx_core = "1.12.0"
versions.kotlin = "1.9.22"
versions.lifecycle = "2.4.1"
versions.glide = "4.15.1"
versions.datastore = "1.0.0"
versions.swiperefresh = "1.2.0-alpha01"
versions.echartsjava = "1.0.7"
versions.webkit = "1.10.0"
versions.ansi4j = "ansi4j-1.1.0"
versions.free_reflection = "3.2.0"
versions.viewpagerindicator = "1.2.3"
deps.constraintlayout = "androidx.constraintlayout:constraintlayout:$versions.constraintlayout"
deps.material = "com.google.android.material:material:$versions.material"
deps.appcompat = "androidx.appcompat:appcompat:$versions.appcompat"
def junit = [:]
junit.java = "junit:junit:$versions.junit_java"
junit.android = "androidx.test.ext:junit:$versions.junit_android"
deps.junit = junit
def espresso = [:]
espresso.core = "androidx.test.espresso:espresso-core:$versions.espresso"
deps.espresso = espresso
def room = [:]
room.runtime = "androidx.room:room-runtime:$versions.room"
room.compiler = "androidx.room:room-compiler:$versions.room"
room.ktx = "androidx.room:room-ktx:$versions.room"
// optional - RxJava3 support for Room
room.rxjava3 = "androidx.room:room-rxjava3:$versions.room"
deps.room = room
/*
Because RxAndroid releases are few and far between, it is recommended you also
explicitly depend on RxJava's latest version for bug fixes and new features.
(see https://github.com/ReactiveX/RxJava/releases for latest 3.x.x version)
*/
def rxjava3 = [:]
rxjava3.rxandroid = "io.reactivex.rxjava3:rxandroid:$versions.rxandroid3"
rxjava3.rxjava = "io.reactivex.rxjava3:rxjava:$versions.rxjava3"
deps.rxjava3 = rxjava3
deps.okhttp = "com.squareup.okhttp3:okhttp:$versions.okhttp"
deps.gson = "com.google.code.gson:gson:$versions.gson"
def navigation = [:]
navigation.runtime = "androidx.navigation:navigation-runtime:$versions.navigation"
navigation.fragment = "androidx.navigation:navigation-fragment:$versions.navigation"
navigation.ui = "androidx.navigation:navigation-ui:$versions.navigation"
navigation.safeargs = "androidx.navigation:navigation-safe-args-gradle-plugin:$versions.navigation"
deps.navigation = navigation
def hilt = [:]
hilt.core = "com.google.dagger:hilt-android:$versions.hilt"
hilt.compiler = "com.google.dagger:hilt-android-compiler:$versions.hilt"
hilt.plugin = "com.google.dagger:hilt-android-gradle-plugin:$versions.hilt"
deps.hilt = hilt
def retrofit = [:]
retrofit.runtime = "com.squareup.retrofit2:retrofit:$versions.retrofit"
retrofit.gson = "com.squareup.retrofit2:converter-gson:$versions.retrofit"
retrofit.rxjava3 = "com.squareup.retrofit2:adapter-rxjava3:$versions.retrofit"
retrofit.mock = "com.squareup.retrofit2:retrofit-mock:$versions.retrofit"
deps.retrofit = retrofit
def kotlin = [:]
kotlin.core = "androidx.core:core-ktx:$versions.ktx_core"
kotlin.stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
kotlin.plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
deps.kotlin = kotlin
def lifecycle = [:]
lifecycle.viewmodel = "androidx.lifecycle:lifecycle-viewmodel-ktx:$versions.lifecycle"
lifecycle.livedata = "androidx.lifecycle:lifecycle-livedata-ktx:$versions.lifecycle"
lifecycle.runtime = "androidx.lifecycle:lifecycle-runtime-ktx:$versions.lifecycle"
deps.lifecycle = lifecycle
def glide = [:]
glide.recyclerview = "com.github.bumptech.glide:recyclerview-integration:$versions.glide"
glide.core = "com.github.bumptech.glide:glide:$versions.glide"
glide.compiler = "com.github.bumptech.glide:compiler:$versions.glide"
deps.glide = glide
def datastore = [:]
datastore.core = "androidx.datastore:datastore-preferences:$versions.datastore"
datastore.rxjava3 = "androidx.datastore:datastore-preferences-rxjava3:$versions.datastore"
deps.datastore = datastore
deps.swiperefreshlayout = "androidx.swiperefreshlayout:swiperefreshlayout:$versions.swiperefresh"
deps.webkit = "androidx.webkit:webkit:$versions.webkit"
deps.ansi4j_api = "com.github.PavelKastornyy.ansi4j:ansi4j-core-api:$versions.ansi4j"
deps.ansi4j_impl = "com.github.PavelKastornyy.ansi4j:ansi4j-core-impl:$versions.ansi4j"
deps.free_reflection = "com.github.tiann:FreeReflection:$versions.free_reflection"
deps.viewpagerindicator = "com.github.zhpanvip:viewpagerindicator:$versions.viewpagerindicator"
ext.deps = deps