-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
103 lines (83 loc) · 2.72 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
buildscript {
repositories {
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.android.tools.build:gradle:0.14.1'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
classpath 'com.jakewharton.hugo:hugo-plugin:1.1.0'
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.14.3'
}
}
// Manifest version information!
def versionMajor = 1
def versionMinor = 1
def versionPatch = 1
def versionBuild = 0
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
apply plugin: 'crashlytics'
apply plugin: 'hugo'
repositories {
mavenCentral()
maven { url "http://JRAF.org/static/maven/2" /* for android-switch-backport */ }
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
compile 'com.android.support:support-v4:21.0.0'
compile 'com.android.support:support-annotations:21.0.0'
compile 'com.google.guava:guava:18.0'
compile 'com.crashlytics.android:crashlytics:1.1.13'
compile 'com.jakewharton.timber:timber:2.5.0'
compile 'com.jakewharton:butterknife:6.0.0'
compile 'com.squareup:otto:1.3.5'
compile "org.jraf:android-switch-backport:1.3.1"
compile 'org.mindrot:jbcrypt:0.3m'
compile 'com.github.frankiesardo:icepick:2.3.6'
provided 'com.github.frankiesardo:icepick-processor:2.3.6'
compile 'com.netflix.rxjava:rxjava-core:0.20.6'
compile 'com.netflix.rxjava:rxjava-android:0.20.6'
compile 'com.squareup.dagger:dagger:1.2.2'
provided 'com.squareup.dagger:dagger-compiler:1.2.2'
androidTestCompile 'org.mockito:mockito-core:1.10.8'
androidTestCompile 'org.easytesting:fest-assert-core:2.0M10'
}
def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
def buildTime = new Date().format("yyyy-MM-dd'T'HH:mm'Z'", TimeZone.getTimeZone("UTC"))
android {
compileSdkVersion 21
buildToolsVersion '21.1.0'
defaultConfig {
minSdkVersion 15
targetSdkVersion 21
versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
buildConfigField "String", "GIT_SHA", "\"${gitSha}\""
buildConfigField "String", "BUILD_TIME", "\"${buildTime}\""
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
signingConfigs {
release {
storeFile file(storeFilePath)
storePassword keystorePassword
keyAlias "encrypted-camera"
keyPassword aliasKeyPassword
}
}
buildTypes {
debug {
applicationIdSuffix '.dev'
versionNameSuffix '-dev'
}
release {
signingConfig signingConfigs.release
}
}
lintOptions {
abortOnError false
}
}