-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (44 loc) · 1.83 KB
/
build.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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
ext {
def RetrofitVersion = '2.3.0'
def OkHttpVersion = '3.9.1'
def coroutines = '1.0.0'
def kotlin_version = '1.3.21'
kotlin = [
kotlin : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version",
coroutines: "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines",
kotlinx : "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines",
]
networkDependencies = [
retrofit : "com.squareup.retrofit2:retrofit:${RetrofitVersion}",
GsonConverter : "com.squareup.retrofit2:converter-gson:${RetrofitVersion}",
// coroutinesAdapter: 'com.jakewharton.retrofit:retrofit2-kotlin-coroutines-experimental-adapter:1.0.0',
// okHttp3 : "com.squareup.okhttp3:okhttp:${OkHttpVersion}",
okHttp3Logging : "com.squareup.okhttp3:logging-interceptor:${OkHttpVersion}",
json : 'com.google.code.gson:gson:2.8.2'
]
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}