build.gradle
5.1 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
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
dexOptions {
javaMaxHeapSize "4g"
}
defaultConfig {
applicationId "com.ivt.android.me"
minSdkVersion 11
targetSdkVersion 22
versionCode 7
versionName "1.0.8"
multiDexEnabled true
}
signingConfigs {
//debug版本不签名
debug {
storeFile file("./Mekey.keystore")
storePassword KEYSTORE_PASSWORD
keyAlias KEY_ALIAS
keyPassword KEY_PASSWORD
}
//release版本签名信息
release {
try {
storeFile file("./Mekey.keystore")
storePassword KEYSTORE_PASSWORD
keyAlias KEY_ALIAS
keyPassword KEY_PASSWORD
} catch (ex) {
throw new InvalidUserDataException("You should define KEYSTORE_PASSWORD and KEY_PASSWORD in gradle.properties.");
}
}
}
buildTypes {
//debug版本编译是配置
debug {
// 显示Log
buildConfigField "boolean", "LOG_DEBUG", "true"
multiDexEnabled true
debuggable true
// versionNameSuffix ""
minifyEnabled false
zipAlignEnabled false
shrinkResources false
signingConfig signingConfigs.debug
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
jniLibs.srcDir 'src/main/libs'
}
}
}
task nativeLibsToJar(type: Zip, description: "create a jar archive of the native libs") {
destinationDir file("$projectDir/libs")
baseName "Native_Libs"
extension "jar"
from fileTree(dir: "libs", include: "**/*.so")
into "lib"
}
tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn(nativeLibsToJar)
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
provided files('runtime/MiguSDK2.0_203.jar')
// compile files('libs/commons-codec-1.6.jar')
// compile files('libs/commons-logging-1.1.3.jar')
// compile files('libs/eventbus-2.4.0.jar')
// compile files('libs/gson-2.7.jar')
// compile files('libs/ksylive3.0.jar')
// compile files('libs/libammsdk.jar')
// compile files('libs/libksyplayer.jar')
// compile files('libs/libksystat.jar')
// compile files('libs/MarsorUtils-1.0.0-SNAPSHOT.jar')
// compile files('libs/okhttp-3.4.1.jar')
// compile files('libs/okio-1.4.0.jar')
// compile files('libs/open_sdk_r5509.jar')
// compile files('libs/picasso-2.5.2.jar')
// compile files('libs/umeng_social_sdk.jar')
// compile files('libs/xUtils-2.6.14.jar')
// compile files('libs/volley.jar')
// compile files('libs/cling-core-1.0.5.jar')
// compile files('libs/cling-support-1.0.5.jar')
// compile files('libs/universal-image-loader-1.9.3.jar')
// compile files('libs/Vitamio-4.2.2.jar')
// compile files('libs/httpmime-4.1.3.jar')
// compile files('libs/ShareSDK-Core-2.5.7.jar')
// compile files('libs/ShareSDK-QZone-2.5.7.jar')
// compile files('libs/ShareSDK-Wechat-2.5.7.jar')
// compile files('libs/ShareSDK-Wechat-Core-2.5.7.jar')
// compile files('libs/ShareSDK-Wechat-Favorite-2.5.7.jar')
// compile files('libs/ShareSDK-Wechat-Moments-2.5.7.jar')
// compile files('libs/greendao-1.3.7.jar')
// compile files('libs/umeng-analytics-v5.2.4.jar')
// compile files('libs/umeng-fb-v4.3.2.jar')
// compile files('libs/umeng-update-v2.4.2.jar')
// compile files('libs/zxing-javase.jar')
// compile files('libs/alipaySdk-20160516.jar')
// compile files('libs/android-async-http-1.4.8.jar')
// compile files('libs/fastjson-1.1.43.android.jar')
// compile files('libs/asmack-jse-buddycloud-2010.12.11.jar')
// compile files('libs/CmVideoSdk_ss2.0_preview_201607051427.jar')
// compile files('libs/ShareSDK-SinaWeibo-2.5.7.jar')
// compile files('libs/jpush-android-2.1.3.jar')
// compile files('libs/CmVideoSdk_parnter_1.1_生产_303300260000000_20161028153250.jar')
compile files('libs/ormlite-android-4.47.jar')
compile files('libs/ormlite-core-4.47.jar')
compile files('libs/greendao-1.3.7.jar')
compile files('libs/peplayerinterface.jar')
compile 'com.google.code.gson:gson:2.3'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.android.support:support-v4:23.4.0'
// compile files('libs/libcnliveanalytics.jar')
// compile files('libs/libcnliveutil.jar')
// compile files('libs/libcnliveanalytics.jar')
// compile files('libs/libcnliveutil.jar')
}