-
-
Notifications
You must be signed in to change notification settings - Fork 206
Expand file tree
/
Copy pathbuild.gradle
More file actions
218 lines (174 loc) · 5.85 KB
/
build.gradle
File metadata and controls
218 lines (174 loc) · 5.85 KB
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'realm-android'
//获取系统时间
def releaseTime() {
return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
flavorDimensions "default"
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 304
versionName "3.0.0"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
ndk {
abiFilters 'armeabi-v7a',"arm64-v8a"
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
}
signingConfigs {
release {
keyAlias 'zuowuxuxi'
keyPassword 'myxiake1q'
storeFile file('qpython.key')
storePassword 'myxiake1q'
v1SigningEnabled true
v2SigningEnabled false
}
debug {
storeFile file("../debug.keystore")
}
}
buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
//修改生成的包名
applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
def fileName = "qpython_os_${releaseTime()}_${variant.productFlavors[0].name}.apk"
output.outputFileName = fileName
}
}
}
}
debug {
signingConfig signingConfigs.release
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dataBinding {
enabled = true
}
lintOptions {
disable 'MissingTranslation'
abortOnError false
}
//为了解决部分第三方库重复打包了META-INF的问题
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
//设置渠道
productFlavors {
ol {
// resValue "string", "app_name", "Qpython"
applicationId "org.qpython.qpy"
}
os {
// resValue "string", "app_name", "Qpython"
applicationId "org.qpython.qpy"
}
od {
// resValue "string", "app_name", "Qpython"
applicationId "org.qpython.qpy"
}
op {
// resValue "string", "app_name", "QpythonL"
applicationId "com.hipipal.qpyplus"
}
oh {
// resValue "string", "app_name", "QpythonL"
applicationId "com.hipipal.qpyplus"
}
}
repositories {
flatDir {
dirs 'libs'
}
}
// dexOptions {
// incremental =true
// }
}
configurations {
all*.exclude group: 'commons-logging', module: 'commons-logging'
}
dependencies {
//api rootProject.ext.libButterknife
//annotationProcessor rootProject.ext.libButterknifeCompiler
api fileTree(include: ['*.jar'], dir: 'libs')
api fileTree(include: ['*.so'], dir: 'libs')
api project(':termemulator')
api project(':termexec')
api project(':qpypluginman')
api project(':qpysdk')
api files('libs/markdown4j.jar')
//api files('libs/android-async-http-1.4.8.aar')
//api 'com.loopj.android:android-async-http:1.4.8'
api('com.github.afollestad.material-dialogs:commons:0.8.5.6') { transitive = true }
api 'me.zhanghai.android.materialprogressbar:library:1.1.4'
api 'org.apmem.tools:layouts:1.9@aar'
api 'com.azeesoft.lib.colorpicker:colorpicker:1.0.8@aar'
api 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3'
api 'com.daimajia.numberprogressbar:library:1.2@aar'
api 'org.litepal.android:core:1.3.1'
api 'me.dm7.barcodescanner:zxing:1.9'
api 'com.android.support:multidex:1.0.1'
api rootProject.ext.libOkHttp3
api rootProject.ext.libOkHttp3Log
api 'com.squareup.okio:okio:1.9.0'
api 'com.google.code.gson:gson:2.7'
api 'com.yanzhenjie:recyclerview-swipe:1.1.3'
api rootProject.ext.libRxAndroid
api rootProject.ext.libRxJava
api rootProject.ext.libSupportCardView
api rootProject.ext.libSupportPreference
osApi rootProject.ext.firebaseCore
osApi rootProject.ext.firebaseMsg
osApi rootProject.ext.firebaseAuth
osApi rootProject.ext.firebaseDatabase
osApi rootProject.ext.googlePlayServiceAuth
olApi rootProject.ext.firebaseCore
olApi rootProject.ext.firebaseMsg
olApi rootProject.ext.firebaseAuth
olApi rootProject.ext.firebaseDatabase
olApi rootProject.ext.googlePlayServiceAuth
api rootProject.ext.retrofit
api rootProject.ext.retrofitCoverterGson
api rootProject.ext.retrofitAdapterRxjava
api 'com.android.support.constraint:constraint-layout:1.0.2'
// 微信
opApi('com.tencent.mm.opensdk:wechat-sdk-android-with-mta:1.4.0') {
exclude group: 'com.android.support:support-v4'
}
// 友盟统计
opApi('com.umeng.analytics:analytics:6.1.2') {
exclude group: 'com.android.support:support-v4'
}
ohApi('com.tencent.mm.opensdk:wechat-sdk-android-with-mta:1.4.0') {
exclude group: 'com.android.support:support-v4'
}
// 友盟统计
ohApi('com.umeng.analytics:analytics:6.1.2') {
exclude group: 'com.android.support:support-v4'
}
api 'com.youth.banner:banner:1.4.10'
}
apply plugin: 'com.google.gms.google-services'