-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
build.gradle
143 lines (120 loc) · 3.63 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
buildscript {
repositories {
jcenter()
// maven {
// url "http://127.0.0.1:8081/nexus/content/groups/public/"
// }
maven { url 'http://download.crashlytics.com/maven' }
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.1'
classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.14.4'
}
}
allprojects {
repositories {
jcenter()
maven { url 'http://download.crashlytics.com/maven' }
}
}
apply plugin: 'com.android.application'
apply plugin: 'crashlytics'
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildToolsVersion "21.1.2"
compileSdkVersion 21
defaultConfig {
applicationId "org.qii.weiciyuan"
minSdkVersion 17
targetSdkVersion 21
versionName null
}
sourceSets {
main {
manifest {
srcFile 'AndroidManifest.xml'
}
java {
srcDir 'src'
}
res {
srcDir 'res'
}
assets {
srcDir 'assets'
}
resources {
srcDir 'src'
}
jniLibs {
srcDir 'libs'
}
aidl {
srcDir 'src/com/sina/sso'
}
}
debug {
res {
srcDir 'debug/res'
}
}
}
lintOptions {
abortOnError false
}
signingConfigs {
debug {
storeFile file("debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
release {
if (System.getenv("KEYSTORE") != null) {
storeFile file(System.getenv("KEYSTORE"))
storePassword System.getenv("KEYSTORE_PASSWORD")
keyAlias System.getenv("KEY_ALIAS")
keyPassword System.getenv("KEY_PASSWORD")
}
}
}
/*
* android:targetPackage cant use ${applicationId}, so define a string source called "applicationId"
* Preference intent android:data dont support ${applicationId}
*/
buildTypes {
debug {
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
resValue "string", "applicationId", "org.qii.weiciyuan" + getApplicationIdSuffix()
resValue "string", "weiciyuanOfficalWeiboName",
"org.qii.weiciyuan" + getApplicationIdSuffix() + ".mention://@四次元App"
debuggable true
signingConfig signingConfigs.debug
}
release {
resValue "string", "applicationId", "org.qii.weiciyuan"
resValue "string", "weiciyuanOfficalWeiboName",
"org.qii.weiciyuan" + ".mention://@四次元App"
debuggable false
signingConfig signingConfigs.release
}
}
dexOptions {
preDexLibraries = false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:support-v4:21.0.0'
compile 'com.crashlytics.android:crashlytics:1.1.11'
compile(project(':libs:slidingmenulibrary')) {
exclude group: 'com.google.android', module: 'support-v4'
}
compile(project(':libs:showcaseviewlibrary')) {
exclude group: 'com.google.android', module: 'support-v4'
}
}