-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathversions.gradle
93 lines (78 loc) · 3.34 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
ext.deps = [:]
def versions = [:]
versions.android_gradle_plugin = '3.4.2'
versions.kotlin = "1.3.31"
versions.kotlin_coroutines = "1.3.0-RC"
versions.androidx = "1.1.0-rc01"
versions.multidex = "1.0.3"
versions.junit = "4.12"
versions.runner = "1.1.2-alpha02"
versions.espresso = "3.2.0-alpha02"
versions.rxkotlin = "2.4.0"
versions.rxandroid = "2.1.0"
versions.okhttp = "3.11.0"
versions.retrofit = "2.6.0"
versions.retrofit_adapter_kotlin = "0.9.2"
versions.utils = "1.25.9"
versions.autodispose = "1.1.0"
versions.recyclerview = "1.0.0"
versions.recyclerview_adapter = "2.9.45-androidx"
versions.glide = "4.9.0"
versions.arouter = "1.4.1"
versions.compiler = "1.2.2"
versions.smart_tabLayout = "2.0.0@aar"
versions.constraintlayout = "1.1.2"
def deps = [:]
def support = [:]
support.androidx = "androidx.appcompat:appcompat:$versions.androidx"
support.multidex = 'androidx.multidex:multidex:2.0.0'
deps.support = support
def kotlin = [:]
kotlin.stdlib = "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin"
kotlin.plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
kotlin.coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.kotlin_coroutines"
deps.kotlin = kotlin
def test = [:]
test.junit = "junit:junit:$versions.junit"
test.runner = "androidx.test:runner:$versions.runner"
test.espresso = "androidx.test.espresso:espresso-core:$versions.espresso"
deps.test = test
def rxjava = [:]
rxjava.rxkotlin = "io.reactivex.rxjava2:rxkotlin:$versions.rxkotlin"
deps.rxjava = rxjava
def retrofit = [:]
retrofit.runtime = "com.squareup.retrofit2:retrofit:$versions.retrofit"
retrofit.adapter = "com.squareup.retrofit2:adapter-rxjava2:$versions.retrofit"
retrofit.gson = "com.squareup.retrofit2:converter-gson:$versions.retrofit"
retrofit.adapter_kotlin = "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:$versions.retrofit_adapter_kotlin"
deps.retrofit = retrofit
def glide = [:]
glide.runtime = "com.github.bumptech.glide:glide:$versions.glide"
glide.compiler = "com.github.bumptech.glide:compiler:$versions.glide"
deps.glide = glide
def arouter = [:]
arouter.runtime = "com.alibaba:arouter-api:$versions.arouter"
arouter.compiler = "com.alibaba:arouter-compiler:$versions.compiler"
deps.arouter = arouter
def smart_tabLayout = [:]
smart_tabLayout.runtime = "com.ogaclejapan.smarttablayout:library:$versions.smart_tabLayout"
smart_tabLayout.utils = "com.ogaclejapan.smarttablayout:utils-v4:$versions.smart_tabLayout"
deps.smart_tabLayout = smart_tabLayout
deps.android_gradle_plugin = "com.android.tools.build:gradle:$versions.android_gradle_plugin"
deps.okhttp = "com.squareup.okhttp3:okhttp:$versions.okhttp"
deps.utils = "com.blankj:utilcodex:$versions.utils"
deps.autodispose = "com.uber.autodispose:autodispose-android-archcomponents-ktx:$versions.autodispose"
deps.recyclerview = "androidx.recyclerview:recyclerview:$versions.recyclerview"
deps.recyclerview_adapter = "com.github.CymChad:BaseRecyclerViewAdapterHelper:$versions.recyclerview_adapter"
deps.constraintlayout = "androidx.constraintlayout:constraintlayout:$versions.constraintlayout"
ext.deps = deps
def build_versions = [:]
build_versions.min_sdk = 16
build_versions.target_sdk = 28
ext.build_versions = build_versions
static def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.maven { url 'https://jitpack.io' }
}
ext.addRepos = this.&addRepos