-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (80 loc) · 3.48 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
buildscript {
def versionMajor = 1
def versionMinor = 0
def versionPatch = 1
def versionBuild = 0
ext.versions = [
'compileSdk': 27,
'minSdk': 21,
'targetSdk': 27,
'versionCode' : versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild,
'versionName' : "${versionMajor}.${versionMinor}.${versionPatch}",
'supportLibrary': '27.1.0',
'constraintLayout': '1.1.0',
'dagger': '2.15',
'leakCanary': '1.5.1',
'mosby': '3.1.0',
'retrofit': '2.4.0',
'glide': '4.6.1',
]
ext.deps = [
'support': [
'v4': "com.android.support:support-v4:${versions.supportLibrary}",
'v13': "com.android.support:support-v13:${versions.supportLibrary}",
'appCompat': "com.android.support:appcompat-v7:${versions.supportLibrary}",
'annotations': "com.android.support:support-annotations:${versions.supportLibrary}",
'design': "com.android.support:design:${versions.supportLibrary}",
'recyclerView': "com.android.support:recyclerview-v7:${versions.supportLibrary}",
'cardView': "com.android.support:cardview-v7:${versions.supportLibrary}",
'palette': "com.android.support:palette-v7:${versions.supportLibrary}",
'constraintLayout': "com.android.support.constraint:constraint-layout:${versions.constraintLayout}",
],
'dagger': [
'runtime': "com.google.dagger:dagger:${versions.dagger}",
'compiler': "com.google.dagger:dagger-compiler:${versions.dagger}",
],
'daggerAndroid': [
'runtime': "com.google.dagger:dagger-android-support:${versions.dagger}",
'compiler':"com.google.dagger:dagger-android-processor:${versions.dagger}"
],
'leakCanary': [
'real': "com.squareup.leakcanary:leakcanary-android:${versions.leakCanary}",
'noOp': "com.squareup.leakcanary:leakcanary-android-no-op:${versions.leakCanary}",
],
'mosby': [
'core': "com.hannesdorfmann.mosby3:mvp:${versions.mosby}",
'viewState': "com.hannesdorfmann.mosby3:viewstate:${versions.mosby}",
],
'retrofit': [
'base': "com.squareup.retrofit2:retrofit:${versions.retrofit}",
'gson': "com.squareup.retrofit2:converter-gson:${versions.retrofit}",
],
'glide': [
'runtime': "com.github.bumptech.glide:glide:${versions.glide}",
'compiler': "com.github.bumptech.glide:compiler:${versions.glide}",
],
'test': [
'junit': "junit:junit:4.12",
'mockito': "org.mockito:mockito-core:2.10.0",
],
'okHttpLogginInterceptor': 'com.squareup.okhttp3:logging-interceptor:3.9.0',
'timber': 'com.jakewharton.timber:timber:4.6.1',
'stetho': 'com.facebook.stetho:stetho-okhttp3:1.5.0',
]
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}