-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathversions.gradle
37 lines (32 loc) · 1.17 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
ext.deps = [:]
def versions = [:]
versions.retrofit = "2.6.1"
versions.appcompat = "1.0.2"
versions.fragment = "1.2.4"
versions.kotlin = "1.3.41"
versions.android_gradle_plugin = "3.5.0"
ext.versions = versions
def retrofit = [:]
retrofit.runtime = "com.squareup.retrofit2:retrofit:$versions.retrofit"
retrofit.gson = "com.squareup.retrofit2:converter-gson:$versions.retrofit"
deps.retrofit = retrofit
def support = [:]
support.app_compat = "androidx.appcompat:appcompat:$versions.appcompat"
support.core_ktx = "androidx.core:core-ktx:$versions.appcompat"
support.fragment_ktx = "androidx.fragment:fragment-ktx:$versions.fragment"
deps.support = support
def kotlin = [:]
kotlin.stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
kotlin.plugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
deps.kotlin = kotlin
deps.android_gradle_plugin = "com.android.tools.build:gradle:$versions.android_gradle_plugin"
ext.deps = deps
def addRepos(RepositoryHandler handler) {
handler.maven {
url 'https://maven.aliyun.com/repository/google'
}
handler.maven {
url 'https://maven.aliyun.com/repository/jcenter'
}
}
ext.addRepos = this.&addRepos