-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
79 lines (66 loc) · 1.91 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
apply plugin: 'android'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'com.android.support:support-v4:18.0.+'
compile project(':thirdparty:locale-api')
}
android {
compileSdkVersion 19
buildToolsVersion "19"
defaultConfig {
minSdkVersion 13
targetSdkVersion 19
}
signingConfigs {
debug {
storeFile file("/home/lukas/.android/debug.keystore")
}
release {
if (project.hasProperty('storeFile')) {
storeFile file(project.storeFile)
} else {
storeFile System.console().readLine("\n\$ Enter keystore path: ")
}
if (project.hasProperty('storePassword')) {
storePassword = project.storePassword
} else {
storePassword System.console().readLine("\n\$ Enter keystore password: ")
}
if (project.hasProperty('keyAlias')) {
keyAlias = project.keyAlias
} else {
keyAlias System.console().readLine("\n\$ Enter key alias: ")
}
if (project.hasProperty('keyPassword')) {
keyPassword = project.keyPassword
} else {
keyPassword System.console().readLine("\n\$ Enter key password: ")
}
}
}
buildTypes {
release {
runProguard true
proguardFile getDefaultProguardFile('proguard-android.txt')
proguardFile 'proguard-android.txt'
signingConfig signingConfigs.release
}
}
lintOptions {
// turn off checking the given issue id's
disable 'InvalidPackage'
}
}
task wrapper(type: org.gradle.api.tasks.wrapper.Wrapper) {
gradleVersion = '1.10'
}