forked from codebutler/farebot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (64 loc) · 1.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
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.0.+'
}
}
apply plugin: 'android'
apply plugin: 'crashlytics'
repositories {
mavenCentral()
maven { url 'http://download.crashlytics.com/maven' }
maven { url 'libs' }
}
dependencies {
compile 'com.android.support:support-v4:13.0.0'
compile 'com.google.android.gms:play-services:3.1.36'
compile 'com.actionbarsherlock:actionbarsherlock:4.3.2-SNAPSHOT'
compile 'com.crashlytics.android:crashlytics:1.0.+'
compile 'org.apache.commons:commons-io:1.3.2'
compile 'org.apache.commons:commons-lang3:3.1'
compile files('libs/nfc-felica.jar')
}
def password = null
def askPassword() {
return 'security -q find-generic-password -g -l farebot-release'.execute().err.text.split('"')[1]
}
afterEvaluate {
validateReleaseSigning.doFirst {
password = askPassword()
signingConfig.storePassword = password
signingConfig.keyPassword = password
}
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 10
targetSdkVersion 17
}
signingConfigs {
debug {
storeFile file('debug.keystore')
}
release {
storeFile file('release.keystore')
keyAlias 'ericbutler'
storePassword ''
keyPassword ''
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
tasks.withType(Compile) {
options.encoding = "UTF-8"
}