forked from JakeWharton/Telecine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (65 loc) · 1.97 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
// Manifest version information!
def versionMajor = 1
def versionMinor = 1
def versionPatch = 0
def versionBuild = 0 // bump for dogfood builds, public betas, etc.
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:1.0.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
}
def getBugsnagKey() {
return hasProperty('TELECINE_BUGSNAG_KEY') ? TELECINE_BUGSNAG_KEY : ''
}
def getAnalyticsKey() {
return hasProperty('TELECINE_ANALYTICS_KEY') ? TELECINE_ANALYTICS_KEY : ''
}
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 21
buildToolsVersion '21.1.2'
defaultConfig {
applicationId 'com.jakewharton.telecine'
minSdkVersion 21
targetSdkVersion 21
versionCode versionMajor * 1000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
buildConfigField "String", "BUGSNAG_KEY", "\"${getBugsnagKey()}\""
buildConfigField "String", "ANALYTICS_KEY", "\"${getAnalyticsKey()}\""
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
textOutput 'stdout'
}
dexOptions {
preDexLibraries = Boolean.valueOf(System.getProperty("pre-dex", "true"))
}
signingConfigs {
debug {
storeFile rootProject.file('debug.keystore')
storePassword 'android'
keyAlias 'android'
keyPassword 'android'
}
}
buildTypes {
debug {
applicationIdSuffix '.debug'
signingConfig signingConfigs.debug
}
}
}
dependencies {
compile 'com.android.support:support-annotations:21.0.0'
compile 'com.google.android.gms:play-services-base:6.5.87'
compile 'com.jakewharton:butterknife:6.0.0'
compile 'com.jakewharton.timber:timber:2.5.0'
compile 'com.bugsnag:bugsnag-android:3.2.2'
compile 'com.squareup.dagger:dagger:1.2.2'
apt 'com.squareup.dagger:dagger-compiler:1.2.2'
}