-
Notifications
You must be signed in to change notification settings - Fork 0
/
versions.gradle
131 lines (107 loc) · 4.31 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
125
126
127
128
129
130
/**
* Shared file between builds so that they can all use the same dependencies and
* maven repositories.
**/
ext.deps = [:]
def versions = [:]
versions.lifecycle = "2.2.0"
versions.materail = "1.1.0"
versions.card_view = '1.0.0'
versions.androidx_test_espresso = "3.1.0"
versions.mockito = "1.9.3"
versions.androidx_test = "1.1.0"
versions.junit = "4.13"
versions.mockito = "2.19.0"
versions.appcompt = "1.1.0"
versions.core_kotlin = "1.2.0"
versions.constraint_lay = "1.1.3"
versions.dagger = '2.27'
versions.coroutines = "1.3.5"
versions.kotlin = "1.3.70"
versions.glide = "4.11.0"
versions.firebase_db = "19.2.1"
versions.firebase_storage = "19.1.1"
versions.firebase_auth = "19.3.0"
versions.nav_class = "2.3.0-alpha04"
versions.nav_component = "2.2.1"
versions.app_compat = "1.1.0"
versions.legacy_support = "1.0.0"
versions.cropper = "2.8.0"
versions.google_service = "4.3.3"
versions.gradle = "3.6.1"
ext.versions = versions
def deps = [:]
/*appcompact*/
deps.app_compat = "androidx.appcompat:appcompat:$versions.appcompt"
/*class path*/
def clspath = [:]
clspath.goole_ser = "com.google.gms:google-services:$versions.google_service"
clspath.build_gradle = "com.android.tools.build:gradle:$versions.gradle"
clspath.nav_arg_plugin = "androidx.navigation:navigation-safe-args-gradle-plugin:$versions.nav_class"
clspath.ktx_gradle = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
deps.clspath = clspath
/* ktx core*/
deps.ktx_core = "androidx.core:core-ktx:$versions.core_kotlin"
/* androidx.test*/
def atsl = [:]
atsl.runner = "androidx.test:runner:$versions.androidx_test"
atsl.test_core = "androidx.test:core:$versions.androidx_test"
atsl.ext_junit = "androidx.test.ext:junit-ktx:$versions.androidx_test"
atsl.espresso = "androidx.test.espresso:espresso-core:$versions.androidx_test_espresso"
atsl.sup_espresso = "com.android.support.test.espresso:espresso-contrib:$versions.androidx_test_espresso"
atsl.junit = "junit:junit:$versions.junit"
atsl.mockito = "org.mockito:mockito-core:$versions.mockito"
deps.atsl = atsl
/*constraint layout*/
deps.const_layout = "androidx.constraintlayout:constraintlayout:$versions.constraint_lay"
/*ktx library*/
deps.ktx_stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
/*legacy*/
deps.lgcy = "androidx.legacy:legacy-support-v4:$versions.legacy_support"
//design
def design = [:]
design.card_view = "androidx.cardview:cardview:$versions.card_view"
design.material = "com.google.android.material:material:$versions.materail"
deps.design = design
/*life cycle*/
def lifecycle = [:]
lifecycle.extensions = "androidx.lifecycle:lifecycle-extensions:$versions.lifecycle"
lifecycle.livedata = "androidx.lifecycle:lifecycle-livedata-ktx:$versions.lifecycle"
lifecycle.viewmodel = "androidx.lifecycle:lifecycle-viewmodel-ktx:$versions.lifecycle"
lifecycle.runtime = "androidx.lifecycle:lifecycle-runtime-ktx:$versions.lifecycle"
lifecycle.common = "androidx.lifecycle:lifecycle-common-java8:$versions.lifecycle"
deps.lifecycle = lifecycle
/*firebase*/
def firebase = [:]
firebase.database = "com.google.firebase:firebase-database:$versions.firebase_db"
firebase.storage = "com.google.firebase:firebase-storage:$versions.firebase_storage"
firebase.auth = "com.google.firebase:firebase-auth:$versions.firebase_auth"
deps.firebase = firebase
/*dagger2*/
def dagger = [:]
dagger.runtime = "com.google.dagger:dagger:$versions.dagger"
dagger.compiler = "com.google.dagger:dagger-compiler:$versions.dagger"
deps.dagger = dagger
/*coroutine*/
def coroutines = [:]
coroutines.core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$versions.coroutines"
coroutines.android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.coroutines"
deps.coroutines = coroutines
/*navigation component*/
def nav = [:]
nav.fargment = "androidx.navigation:navigation-fragment-ktx:$versions.nav_component"
nav.ui = "androidx.navigation:navigation-ui-ktx:$versions.nav_component"
deps.nav = nav
/*glide*/
def glide = [:]
glide.runtime = "com.github.bumptech.glide:glide:$versions.glide"
glide.compiler = "com.github.bumptech.glide:compiler:$versions.glide"
deps.glide = glide
deps.cropper = "com.theartofdev.edmodo:android-image-cropper:$versions.cropper"
ext.deps = deps
def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.maven { url "https://jitpack.io" }
}
ext.addRepos = this.&addRepos