-
Notifications
You must be signed in to change notification settings - Fork 3
/
versions.gradle
124 lines (87 loc) · 2.74 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
120
121
122
123
124
//region Dependencies
def deps = [:]
ext.deps = deps
//endregion
//region Versions
def versions = [:]
versions.android_gradle_plugin = "3.5.2"
versions.android_runtime = "4.1.1.4"
versions.androidx_annotation = "1.1.0"
versions.androidx_constraintlayout = "1.1.3"
versions.commons_text = "1.8"
versions.dagger = "2.25.2"
versions.freemarker = "2.3.29"
versions.javax = "1"
versions.kotlin = "1.3.50"
versions.material = "1.0.0"
versions.rx_java = "3.1.2"
versions.rx_kotlin = "3.0.1"
deps.versions = versions
//endregion
//region Android
def android = [:]
android.runtime = "com.google.android:android:$versions.android_runtime"
deps.android = android
//endregion
//region Androidx
def androidx = [:]
androidx.annotation = "androidx.annotation:annotation:$versions.androidx_annotation"
androidx.constraintlayout =
"androidx.constraintlayout:constraintlayout:$versions.androidx_constraintlayout"
deps.androidx = androidx
//endregion
//region Build
def build = [:]
build.android_gradle_plugin = "com.android.tools.build:gradle:$versions.android_gradle_plugin"
build.kotlin_gradle_plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
deps.build = build
def build_versions = [:]
build_versions.compile_sdk = 29
build_versions.min_sdk = 16
build_versions.target_sdk = 29
deps.build_versions = build_versions
//endregion
//region Dagger
def dagger = [:]
dagger.android = "com.google.dagger:dagger-android:$versions.dagger"
dagger.android_processor = "com.google.dagger:dagger-android-processor:$versions.dagger"
dagger.android_support = "com.google.dagger:dagger-android-support:$versions.dagger"
dagger.annotation = "javax.inject:javax.inject:$versions.javax"
dagger.compiler = "com.google.dagger:dagger-compiler:$versions.dagger"
dagger.runtime = "com.google.dagger:dagger:$versions.dagger"
deps.dagger = dagger
//endregion
//region Kotlin
def kotlin = [:]
kotlin.stdlib_jdk8 = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
deps.kotlin = kotlin
//endregion
//region Miscellaneous
def misc = [:]
misc.commons_text = "org.apache.commons:commons-text:$versions.commons_text"
deps.misc = misc
//endregion
//region Reactive Extensions
def rx = [:]
rx.java = "io.reactivex.rxjava3:rxjava:$versions.rx_java"
rx.kotlin = "io.reactivex.rxjava3:rxkotlin:$versions.rx_kotlin"
deps.rx = rx
//endregion
//region Template
def template = [:]
template.freemarker = "org.freemarker:freemarker:$versions.freemarker"
deps.template = template
//endregion
//region Ui
def ui = [:]
ui.material = "com.google.android.material:material:$versions.material"
deps.ui = ui
//endregion
//region Repositories
static def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.mavenCentral()
}
ext.addRepos = this.&addRepos
//endregion