-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
141 lines (122 loc) · 6.64 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// 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-beta3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
}
allprojects {
repositories {
jcenter()
maven { url "http://dl.bintray.com/jjhesk/maven" }
maven { url "https://clojars.org/repo/" }
maven { url "https://jitpack.io" }
mavenCentral()
}
group = project.GROUP
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
//Libs
junitVersion = '4.12'
supportLibVersion = '24.0.0'
supportv4Version = '24.2.0'
rxjavaVersion = '1.1.6'
rxAndroidVersion = '1.2.1'
daggerVersion = '2.5'
javaxVersion = "1.0"
twitter4jVersion = "4.0.4"
butterKnifeVersion = "8.1.0"
multidexVersion = "1.0.0"
leakCanaryVersion = "1.4-beta2"
timberVersion = "4.1.2"
smoothVersion = "1.0.0"
materialProgressBarVersion = "1.1.6"
testRunnerVersion = "0.4"
testRuleVersion = "0.4"
espressoVersion = "2.2.1"
uiAutomatorVersion = "2.1.1"
annotationsVersion = "24.2.0"
glideVersion = "3.7.0"
storIOVersion = "1.9.0"
stethoVersion = "1.3.1"
ultimateRecyclerViewVersion = "0.5.8"
autoValueVersion = "1.2"
autoParcle = "1.0.3"
playServiceVersion = "9.2.1"
}
ext.deps = [
junit : "junit:junit:$ext.junitVersion",
appcompactV7 : "com.android.support:appcompat-v7:$ext.supportLibVersion",
supportv4 : "com.android.support:support-v4:$ext.supportv4Version",
design : "com.android.support:design:$ext.supportLibVersion",
cardView : "com.android.support:cardview-v7:$ext.supportLibVersion",
rxJava : "io.reactivex:rxjava:$ext.rxjavaVersion",
rxAndroid : "io.reactivex:rxandroid:$ext.rxAndroidVersion",
daggerCompiler : "com.google.dagger:dagger-compiler:$ext.daggerVersion",
dagger : "com.google.dagger:dagger:$ext.daggerVersion",
javax : "javax.annotation:jsr250-api:$ext.javaxVersion",
twitter4j : "org.twitter4j:twitter4j-core:$ext.twitter4jVersion",
twitter4jStream : "org.twitter4j:twitter4j-stream:$ext.twitter4jVersion",
twitter4jAsync : "org.twitter4j:twitter4j-async:$ext.twitter4jVersion",
butterKnife : "com.jakewharton:butterknife:$ext.butterKnifeVersion",
butterKnifeComipler : "com.jakewharton:butterknife-compiler:$ext.butterKnifeVersion",
multidex : "com.android.support:multidex:$ext.multidexVersion",
leakCanary : "com.squareup.leakcanary:leakcanary-android:$ext.leakCanaryVersion",
leakCanaryTestAndRelease: "com.squareup.leakcanary:leakcanary-android-no-op:$ext.leakCanaryVersion",
timber : "com.jakewharton.timber:timber:$ext.timberVersion",
smoothProgress : "com.hannesdorfmann.smoothprogressbar:library:$ext.smoothVersion",
materialProgress : "me.zhanghai.android.materialprogressbar:library:$ext.materialProgressBarVersion",
testRunner : "com.android.support.test:runner:$ext.testRunnerVersion",
testRule : "com.android.support.test:rules:$ext.testRuleVersion",
espresso : "com.android.support.test.espresso:espresso-core:$ext.espressoVersion",
espressoWeb : "com.android.support.test.espresso:espresso-web:$ext.espressoVersion",
uiautomator : "com.android.support.test.uiautomator:uiautomator-v18:$ext.uiAutomatorVersion",
annotation : "com.android.support:support-annotations:$ext.annotationsVersion",
glide : "com.github.bumptech.glide:glide:$ext.glideVersion",
materialDrawer : "com.mikepenz:materialdrawer:5.3.6@aar",
googleMaterial : "com.mikepenz:google-material-typeface:2.2.0.1.original@aar",
fontAwesome : "com.mikepenz:fontawesome-typeface:4.6.0.2@aar",
storIOSqlite : "com.pushtorefresh.storio:sqlite:$ext.storIOVersion",
storIOContent : "com.pushtorefresh.storio:content-resolver:$ext.storIOVersion",
storIOSqlAnnotation : "com.pushtorefresh.storio:sqlite-annotations:$ext.storIOVersion",
storIOContentAnnotation : "com.pushtorefresh.storio:content-resolver-annotations:$ext.storIOVersion",
storIOSqlProcessor : "com.pushtorefresh.storio:sqlite-annotations-processor:$ext.storIOVersion",
storIOContentProcessor : "com.pushtorefresh.storio:content-resolver-annotations-processor:$ext.storIOVersion",
stetho : "com.facebook.stetho:stetho:$ext.stethoVersion",
autoValue : "com.google.auto.value:auto-value:$ext.autoValueVersion",
autoValueCompiler : "com.google.auto.value:auto-value:$ext.autoValueVersion",
autoParcle : "frankiesardo:auto-parcel:$ext.autoParcle",
circularImageView : "com.mikhaellopez:circularimageview:3.0.2",
analytics : "com.google.android.gms:play-services-analytics:$ext.playServiceVersion",
location : "com.google.android.gms:play-services-location:$ext.playServiceVersion",
subSamplingImageView : "com.davemorrissey.labs:subsampling-scale-image-view:3.5.0"
]
ext {
if (project.hasProperty('preDexEnable')) {
project.ext.preDexLibs = project.properties['preDexEnable'].equals('true')
} else {
project.ext.preDexLibs = true // pre dexing should be true by default
}
println('PREDEX ' + (project.ext.preDexLibs ? 'ENABLED' : 'DISABLED'))
// goes to build log or console output
}
subprojects {
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
}
}
}