-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
61 lines (53 loc) · 1.66 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
maven {
url "https://github.com/hdodenhof/viewpagerindicator-aar/raw/master"
}
}
android {
compileSdkVersion 18
buildToolsVersion "18.1.0"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
dependencies {
compile 'com.android.support:support-v4:18.0.0'
compile 'com.google.android.gms:play-services:3.2.65'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.viewpagerindicator:viewpagerindicator:2.4.2'
compile 'org.jsoup:jsoup:1.7.2'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.jakewharton:disklrucache:2.0.2'
}
// Read release signing details from signing.properties if available
def propFile = new File('signing.properties')
if (propFile.canRead()){
def Properties props = new Properties()
props.load(new FileInputStream(propFile))
if (props != null && props['STORE_FILE'] && props['STORE_PASSWORD'] && props['KEY_ALIAS'] && props['KEY_PASSWORD']) {
android.signingConfigs {
release {
storeFile = file(props['STORE_FILE'])
storePassword = props['STORE_PASSWORD']
keyAlias = props['KEY_ALIAS']
keyPassword = props['KEY_PASSWORD']
}
}
android.buildTypes.release.signingConfig = android.signingConfigs.release
}
}