-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
119 lines (101 loc) · 4.73 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
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.github.ben-manes.versions'
buildscript {
ext.kotlin_version = '1.2.61'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha07'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
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
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext.versions = [
// SDK
minSdk : 19,
targetSdk : 28,
compileSdk : 28,
//Tools
buildTools : '28.0.2',
dagger2 : '2.17',
archComponents : '1.1.1',
room : '2.0.0-rc01',
androidX : '1.0.0-rc01',
constraintLayout : '2.0.0-alpha2',
// Testing
junit : '4.12',
hamcrest : '1.3',
rules : '1.0.2',
runner : '1.0.2',
//Network and Image loading
moshi : '1.6.0',
picasso : '2.5.2',
okHttp : '3.11.0',
retrofit : '2.4.0',
okHttp3Downloader: '1.1.0',
// Others
timber : '4.7.1',
circleImageView : '2.2.0',
leakCanary : '1.6.1',
lineChart : '4.2.2'
]
ext.androidx = [
customTabs : "androidx.browser:browser:$rootProject.ext.versions.androidX",
cardView : "androidx.cardview:cardview:$rootProject.ext.versions.androidX",
appCompat : "androidx.appcompat:appcompat:$rootProject.ext.versions.androidX",
annotations : "androidx.annotation:annotation:$rootProject.ext.versions.androidX",
recyclerView : "androidx.recyclerview:recyclerview:$rootProject.ext.versions.androidX",
design : "com.google.android.material:material:$rootProject.ext.versions.androidX",
constraintLayout: "androidx.constraintlayout:constraintlayout:$rootProject.ext.versions.constraintLayout",
]
ext.archComponents = [
roomRuntime : "androidx.room:room-runtime:$rootProject.ext.versions.room",
roomCompiler: "androidx.room:room-compiler:$rootProject.ext.versions.room"
]
ext.testing = [
junit : "junit:junit:$rootProject.ext.versions.junit",
hamcrestAll: "org.hamcrest:hamcrest-all:$rootProject.ext.versions.hamcrest",
]
ext.dagger = [
dagger : "com.google.dagger:dagger:$rootProject.ext.versions.dagger2",
daggerAndroid : "com.google.dagger:dagger-android:$rootProject.ext.versions.dagger2",
daggerCompiler : "com.google.dagger:dagger-compiler:$rootProject.ext.versions.dagger2",
daggerAndroidSupport : "com.google.dagger:dagger-android-support:$rootProject.ext.versions.dagger2",
daggerAndroidProcessor: "com.google.dagger:dagger-android-processor:$rootProject.ext.versions.dagger2"
]
ext.other = [
lineChart : "com.jjoe64:graphview:$rootProject.ext.versions.lineChart",
timber : "com.jakewharton.timber:timber:$rootProject.ext.versions.timber",
circleImageView: "de.hdodenhof:circleimageview:$rootProject.ext.versions.circleImageView",
]
ext.kt = [
stdlib: "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
]
ext.leakCanary = [
android : "com.squareup.leakcanary:leakcanary-android:$rootProject.ext.versions.leakCanary",
androidNoOp: "com.squareup.leakcanary:leakcanary-android-no-op:$rootProject.ext.versions.leakCanary",
fragments : "com.squareup.leakcanary:leakcanary-support-fragment:$rootProject.ext.versions.leakCanary"
]
ext.networking = [
moshi : "com.squareup.moshi:moshi:$rootProject.ext.versions.moshi",
okhttp : "com.squareup.okhttp3:okhttp:$rootProject.ext.versions.okHttp",
picasso : "com.squareup.picasso:picasso:$rootProject.ext.versions.picasso",
retrofit : "com.squareup.retrofit2:retrofit:$rootProject.ext.versions.retrofit",
moshiConverter : "com.squareup.retrofit2:converter-moshi:$rootProject.ext.versions.retrofit",
loggingInterceptor : "com.squareup.okhttp3:logging-interceptor:$rootProject.ext.versions.okHttp",
picasso2OkHttp3Downloader: "com.jakewharton.picasso:picasso2-okhttp3-downloader:$rootProject.ext.versions.okHttp3Downloader"
]