-
Notifications
You must be signed in to change notification settings - Fork 101
/
build.gradle
80 lines (67 loc) · 2.61 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0-beta1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
allprojects {
repositories {
jcenter()
}
}
subprojects {
group = GROUP
version = VERSION_NAME
}
task clean(type: Delete) {
delete rootProject.buildDir
}
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
project.plugins.whenPluginAdded { plugin ->
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
}
}
ext {
minSdkVersion = 16
targetSdkVersion = 25
compileSdkVersion = 25
buildToolsVersion = '25.0.0'
sourceCompatibilityVersion = JavaVersion.VERSION_1_7
targetCompatibilityVersion = JavaVersion.VERSION_1_7
}
def androidToolsVersion = '25.1.7'
ext.deps = [
// Android
android: 'com.google.android:android:2.1.2',
androidGradle: 'com.android.tools.build:gradle:2.1.2',
supportv4: 'com.android.support:support-v4:24.0.0',
supportAnnotations: 'com.android.support:support-annotations:24.0.0',
supportAppCompat: 'com.android.support:appcompat-v7:24.0.0',
supportRecyclerView: 'com.android.support:recyclerview-v7:24.0.0',
supportDesign: 'com.android.support:design:24.0.0',
butterknife: 'com.jakewharton:butterknife:8.0.1',
butterknifeCompiler: 'com.jakewharton:butterknife-compiler:8.0.1',
timber: 'com.jakewharton.timber:timber:4.1.2',
// Square
javapoet: 'com.squareup:javapoet:1.7.0',
// Third Party
javaparser: 'com.github.javaparser:javaparser-core:2.4.0',
// Test dependencies
mockito: 'org.mockito:mockito-core:1.10.19',
junit: 'junit:junit:4.12',
truth: 'com.google.truth:truth:0.28',
robolectric: 'org.robolectric:robolectric:3.1',
compiletesting: 'com.google.testing.compile:compile-testing:0.9',
autoservice: 'com.google.auto.service:auto-service:1.0-rc2',
autocommon: 'com.google.auto:auto-common:0.6',
espresso: 'com.android.support.test.espresso:espresso-core:2.2.2',
espressoContrib: 'com.android.support.test.espresso:espresso-contrib:2.2.2',
runner: 'com.android.support.test:runner:0.5'
]