-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
116 lines (106 loc) · 2.73 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
buildscript {
dependencies {
repositories {
mavenCentral()
maven {
url "file:~/.m2/"
artifactUrls "file:~/.m2/"
}
}
//
classpath 'com.android.tools.build:gradle:0.7.+'
classpath 'com.jakewharton.hugo:hugo-plugin:1.0.+'
}
}
dependencies {
repositories {
mavenCentral()
// NOTE: This is only needed when developing the plugin!
mavenLocal()
}
}
apply plugin: 'android'
apply plugin: 'hugo'
apply plugin: 'eclipse'
gradle.projectsEvaluated {
def script = "scripts/generate_v14_compatible_resources.py --res-dir res --res-v14-compatibility-dir res-v14".execute()
script.err.eachLine {line -> println "ERROR: " + line}
script.waitFor()
}
android {
buildToolsVersion '19.0.0'
compileSdkVersion 19
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
defaultConfig {
targetSdkVersion 19
minSdkVersion 17
}
flavorGroups "stores", "api_related"
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
signingConfigs {
release {
storeFile file("debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
buildTypes {
release {
signingConfig signingConfigs.release
runProguard true
proguardFile 'proguard-android.txt'
}
debug {
signingConfig signingConfigs.release
}
}
productFlavors {
google {
flavorGroup "stores"
}
fdroid {
flavorGroup "stores"
}
newAPI {
flavorGroup "api_related"
}
oldAPI {
minSdkVersion 9//needed for hugo..
targetSdkVersion 19//again...
flavorGroup "api_related"
}
}
android.sourceSets.google {
manifest {
srcFile "res-google/AndroidManifest.xml"
}
res{
srcDir "res-google"
}
}
android.sourceSets.oldAPI {
res{
srcDir "res-v14"
}
}
}
dependencies {
compile 'com.android.support:support-v4:19.0.+'
compile 'com.android.support:appcompat-v7:19.0.+'
compile fileTree(dir: 'libs', include: '*.jar', exclude: 'android-support-v4.jar')
compile project(':ilovefs-android')
}