-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdependencies.gradle
91 lines (75 loc) · 4.1 KB
/
dependencies.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
// Define versions in a single place
ext {
// Manifest version information!
def versionMajor = 0
def versionMinor = 8
def versionPatch = 0
def versionBuild = 0 // bump for dogfood builds, public betas, etc.
versionCode = versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
versionName = "${versionMajor}.${versionMinor}.${versionPatch}-${versionBuild}"
versions = [
// App
code: versionCode,
name: "${versionName}",
// Sdk and tools
minSdk: 21,
targetSdk: 24,
compileSdk: 24,
buildTools: '24.0.3',
// Gradle plugins
androidApt: '1.8',
apt: '0.9',
retrolambda: '3.3.0',
// Libs
support: '24.2.1',
dagger: '2.7',
butterknife: '8.4.0',
retrofit: '2.1.0',
moshi: '1.2.0',
rxJava: '1.2.0',
rxAndroid: '1.2.1',
rxBinding: '0.4.0',
autoValueMoshi: '0.4.0',
autoValue: '1.3',
loggingInterceptor: '3.4.1',
glide: '3.7.0',
glideOkHttp3: '1.4.0',
jsr305: '3.0.1',
leakCanary: '1.5',
junit: '4.12',
mockito: '2.1.0-RC.1',
truth: '0.30'
]
gradlePlugins = [
androidApt: "com.neenbedankt.gradle.plugins:android-apt:${versions.androidApt}",
apt: "net.ltgt.gradle:gradle-apt-plugin:${versions.apt}",
retrolambda: "me.tatarka:gradle-retrolambda:${versions.retrolambda}"
]
libs = [
appcompat: "com.android.support:appcompat-v7:${versions.support}",
recyclerview: "com.android.support:recyclerview-v7:${versions.support}",
design: "com.android.support:design:${versions.support}",
glide: "com.github.bumptech.glide:glide:${versions.glide}",
glideOkHttp3: "com.github.bumptech.glide:okhttp3-integration:${versions.glideOkHttp3}@aar",
dagger: "com.google.dagger:dagger:${versions.dagger}",
daggerCompiler: "com.google.dagger:dagger-compiler:${versions.dagger}",
butterknife: "com.jakewharton:butterknife:${versions.butterknife}",
butterknifeCompiler: "com.jakewharton:butterknife-compiler:${versions.butterknife}",
autoValue: "com.google.auto.value:auto-value:${versions.autoValue}",
moshi: "com.squareup.moshi:moshi:${versions.moshi}",
autoValueMoshi: "com.ryanharter.auto.value:auto-value-moshi:${versions.autoValueMoshi}",
retrofit: "com.squareup.retrofit2:retrofit:${versions.retrofit}",
retrofitRxJavaAdapter: "com.squareup.retrofit2:adapter-rxjava:${versions.retrofit}",
loggingInterceptor: "com.squareup.okhttp3:logging-interceptor:${versions.loggingInterceptor}",
moshiConverter: "com.squareup.retrofit2:converter-moshi:${versions.retrofit}",
rxJava: "io.reactivex:rxjava:${versions.rxJava}",
rxAndroid: "io.reactivex:rxandroid:${versions.rxAndroid}",
rxBinding: "com.jakewharton.rxbinding:rxbinding:${versions.rxBinding}",
jsr305: "com.google.code.findbugs:jsr305:${versions.jsr305}",
leakCanary: "com.squareup.leakcanary:leakcanary-android:${versions.leakCanary}",
leakCanaryNoOp: "com.squareup.leakcanary:leakcanary-android-no-op:${versions.leakCanary}",
junit: "junit:junit:${versions.junit}",
mockito: "org.mockito:mockito-core:${versions.mockito}",
truth: "com.google.truth:truth:${versions.truth}"
]
}