-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (52 loc) · 1.77 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
// 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.0.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
// versionName: "{versionMajor}.{versionMinor}.{versionPatch}.{versionBuild}"
// versionCode: versionMajor * 1000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
// Example for v1.1.0 release build 0 (=90):
// versionName: "1.1.0.90" (or only "1.1.0" for tagging)
// versionCode: 1010090 (01 * 1000000 + 01 * 10000 + 00 * 100 + 90)
versionMajor = 0
versionMinor = 1
versionPatch = 1
versionBuild = 0
// 0-9 : release build, 10-19 : beta build, 20-29 : alpha build, ..., 90-99 : debug build
versionCode = versionMajor * 1000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName = "${versionMajor}.${versionMinor}.${versionPatch}.${versionBuild}"
// SDK & Tools
minSdkVersion = 16
targetSdkVersion = 23
compileSdkVersion = 23
buildToolsVersion = '23.0.3'
// Dependencies
supportLibraryVersion = '23.1.1'
daggerVersion = '2.1'
gsonVersion = '2.6.2'
reactivexVersion = '1.1.0'
okhttpVersion = '3.2.0'
butterKnifeVersion = '7.0.1'
retrofitVersion = '2.0.0'
picassoVersion = '2.5.2'
junitVersion = '4.12'
junitRunnerRuleVersion = '0.5'
mockitoVersion = '1.10.19'
espressoVersion = '2.2.2'
}