-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
85 lines (77 loc) · 3.38 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.versions = [
'minSdk' : 16,
'compileSdk' : 26,
'buildTools' : '26.0.2',
'androidPlugin': '3.0.0',
'retrofit' : '2.3.0',
'dagger' : '2.12',
'stetho' : '1.5.0',
'objectBox' : '1.2.1',
'sourceCompat' : JavaVersion.VERSION_1_8,
'targetCompat' : JavaVersion.VERSION_1_8
]
ext.deps = [
android : [
'gradlePlugin': "com.android.tools.build:gradle:${versions.androidPlugin}",
],
support : [
'appCompat' : "com.android.support:appcompat-v7:${versions.buildTools}",
'annotations' : "com.android.support:support-annotations:${versions.buildTools}",
'recyclerView': "com.android.support:recyclerview-v7:${versions.buildTools}",
],
square : [
'retrofit' : "com.squareup.retrofit2:retrofit:${versions.retrofit}",
'gsonConverter': "com.squareup.retrofit2:converter-gson:${versions.retrofit}",
'okhttp' : "com.squareup.okhttp3:okhttp:3.9.0",
'picasso' : "com.squareup.picasso:picasso:2.5.2"
],
google : [
'dagger' : "com.google.dagger:dagger:${versions.dagger}",
'daggerAndroidSupport' : "com.google.dagger:dagger-android-support:${versions.dagger}",
'daggerProcessor' : "com.google.dagger:dagger-compiler:${versions.dagger}",
'daggerAndroidProcessor': "com.google.dagger:dagger-android-processor:${versions.dagger}"
],
facebook : [
'stetho' : "com.facebook.stetho:stetho:${versions.stetho}",
'networkInterceptor': "com.facebook.stetho:stetho-okhttp3:${versions.stetho}"
],
greenrobot: [
'objectBoxPlugin' : "io.objectbox:objectbox-gradle-plugin:${versions.objectBox}",
'objectBoxDebug' : "io.objectbox:objectbox-android-objectbrowser:${versions.objectBox}",
'objectBoxRelease': "io.objectbox:objectbox-android:${versions.objectBox}",
],
others : [
'fastScroll': "com.futuremind.recyclerfastscroll:fastscroll:0.2.5",
'adapterDelegates': "com.hannesdorfmann:adapterdelegates3:3.0.1",
],
test : [
'junit' : "junit:junit:4.12",
'testRunner' : "com.android.support.test:runner:1.0.1",
'espressoCore': "com.android.support.test.espresso:espresso-core:3.0.1"
]
]
repositories {
google()
jcenter()
mavenCentral()
maven { url "http://objectbox.net/beta-repo/" }
}
dependencies {
classpath deps.android.gradlePlugin
classpath deps.greenrobot.objectBoxPlugin
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url "http://objectbox.net/beta-repo/" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}