-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
96 lines (78 loc) · 2.74 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:1.0.1"
classpath "com.jakewharton.sdkmanager:gradle-plugin:0.12.0"
}
}
apply plugin: "android-sdk-manager"
apply plugin: "com.android.application"
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
def versionMajor = 1
def versionMinor = 2
def versionPatch = 0
versionName buildVersionName(versionMajor, versionMinor, versionPatch)
versionCode buildVersionCode(versionMajor, versionMinor, versionPatch)
minSdkVersion 14
targetSdkVersion 21
resConfigs "nodpi", "hdpi", "xhdpi", "xxhdpi"
resConfigs "en", "ru", "de"
}
signingConfigs {
release {
def signingFile = file("signing.properties")
def signingProperties = new Properties()
if (signingFile.exists()) {
signingProperties.load(signingFile.newInputStream())
storeFile file(signingProperties["keystore.file"])
storePassword signingProperties["keystore.password"]
keyAlias signingProperties["key.alias"]
keyPassword signingProperties["key.password"]
}
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
packagingOptions {
exclude "META-INF/services/javax.annotation.processing.Processor"
}
}
def buildVersionName(versionMajor, versionMinor, versionPatch) {
return "${versionMajor}.${versionMinor}.${versionPatch}"
}
def buildVersionCode(versionMajor, versionMinor, versionPatch) {
return versionMajor * 10 ** 2 + versionMinor * 10 ** 1 + versionPatch * 10 ** 0
}
dependencies {
repositories {
mavenCentral()
}
compile "com.android.support:appcompat-v7:21.0.3"
compile "com.android.support:cardview-v7:21.0.3"
compile "com.android.support:support-v4:21.0.3"
compile "com.android.support:support-annotations:21.0.3"
compile "com.f2prateek.bundler:bundler:1.0.0"
compile "com.f2prateek.dart:dart:1.1.0"
compile "com.jakewharton:butterknife:6.1.0"
compile "com.google.android.gms:play-services-drive:6.5.87"
compile "com.guerwan:transitionbackport:1.1"
compile 'com.melnykov:floatingactionbutton:1.2.0'
compile "com.mcxiaoke.viewpagerindicator:library:2.4.1"
compile "com.rengwuxian.materialedittext:library:1.8.2"
compile "com.squareup:otto:1.3.6"
compile "com.squareup:seismic:1.0.1"
compile "com.venmo.cursor:library:0.4"
compile "commons-io:commons-io:2.4"
}
task generateWrapper(type: Wrapper) {
description "Generates Gradle wrapper."
gradleVersion = "2.2.1"
}