-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
98 lines (79 loc) · 2.93 KB
/
build.gradle
File metadata and controls
98 lines (79 loc) · 2.93 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.50'
repositories {
google()
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0'
}
}
allprojects {
repositories {
jcenter()
google()
mavenCentral()
}
}
ext{
buildToolsVersion = '27.0.3'
compileSdkVersion = 27
targetSdkVersion = 27
minSdkVersion = 21
supportLibVersion = '27.1.0'
rxJavaVersion = '2.1.14'
rxKotlinVersion = '2.2.0'
timberVersion = '4.7.0'
daggerVersion = '2.15'
retrofitVersion = '2.4.0'
okHttpVersion = '3.10.0'
picassoVersion = '2.71828'
crashlyticsVersion = '2.9.4'
gsonVersion = '2.8.5'
lifecycle_version = "1.1.1"
room_version = "1.1.1"
paging_version = "1.0.0"
coroutines_version = "0.22.5"
anko_version = "0.10.4"
//supportLib
supportLib = "com.android.support:support-v4:$supportLibVersion"
supportLibAppCompat = "com.android.support:appcompat-v7:$supportLibVersion"
supportLibDesign = "com.android.support:design:$supportLibVersion"
supportLibRecyclerview = "com.android.support:recyclerview-v7:$supportLibVersion"
supportLibCardview = "com.android.support:cardview-v7:$supportLibVersion"
//rx
rxJava = "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
rxAndroid = "io.reactivex.rxjava2:rxandroid:2.0.1"
rxKotlin = "io.reactivex.rxjava2:rxkotlin:$rxKotlinVersion"
//timber
timber = "com.jakewharton.timber:timber:$timberVersion"
//crashlytics
crashlytics = "com.crashlytics.sdk.android:crashlytics:$crashlyticsVersion@aar"
//dagger
dagger = "com.google.dagger:dagger-android:$daggerVersion"
daggerSupport = "com.google.dagger:dagger-android-support:$daggerVersion" // if you use the support libraries
daggerAnnotation = "com.google.dagger:dagger-android-processor:$daggerVersion" //for annotationProcessor
daggerApt = "com.google.dagger:dagger-compiler:$daggerVersion"
//net
retrofit = "com.squareup.retrofit2:retrofit:$retrofitVersion"
okHttp = "com.squareup.okhttp3:okhttp:$okHttpVersion"
gson = "com.google.code.gson:gson:$gsonVersion"
rxJavaAdapter = "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
gsonConverter = "com.squareup.retrofit2:converter-gson:$retrofitVersion"
//picasso
picasso = "com.squareup.picasso:picasso:$picassoVersion"
buildTime = new Date().format("yyyy-MM-dd'T'HH:mm'Z'", TimeZone.getTimeZone("UTC"))
}
task clean(type: Delete) {
delete rootProject.buildDir
}