build.gradle
4.69 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
apply plugin: 'com.android.application'
apply plugin: 'com.mob.sdk'
apply plugin: 'bugly'
bugly {
appId = '854e85beee' // 注册时分配的App ID
appKey = 'fd62b5b0-4fe1-4bc9-8948-e1bfadb94bbf' // 注册时分配的App Key
}
android {
compileSdkVersion 26
buildToolsVersion "27.0.0"
defaultConfig {
manifestPlaceholders = [appLabel: "@string/app_name"]
applicationId "com.chudiangameplay.android"
minSdkVersion 16
targetSdkVersion 26
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
multiDexEnabled true
// ndk {
// //设置支持的SO库架构
// abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a'
// }
// ndk {
// // 加了其他的文件夹(比如 armeabi-v7a,x86等)可能会出问题
// abiFilters "armeabi-v7a" //,"x86"
// }
ndk {
abiFilters "armeabi", "armeabi-v7a"
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [moduleName: project.getName()]
}
}
}
signingConfigs {
release {
storeFile file('peiwan.jks')
storePassword '123456'
keyAlias 'peiwan'
keyPassword '123456'
}
debug {
storeFile file('peiwan.jks')
storePassword '123456'
keyAlias 'peiwan'
keyPassword '123456'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
repositories {
flatDir {
dirs 'libs'
dirs project(':hmspush').file('libs')
}
}
buildTypes {
release {
manifestPlaceholders = [
bugly_app_version: rootProject.ext.versionName,
EASEMOB_APPKEY : "1183180421228734#game-play"
]
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
manifestPlaceholders = [
bugly_app_version: rootProject.ext.versionName + "debug",
EASEMOB_APPKEY : "1183180421228734#game-test"
]
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// signingConfig signingConfigs.release
}
}
productFlavors {
OFFICIAL {
manifestPlaceholders = [appLabel: "@string/app_name"]
}
OPPO {
manifestPlaceholders = [appLabel: "@string/app_name_oppo"]
}
HUAWEI {
manifestPlaceholders = [appLabel: "@string/app_name_huawei"]
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':mylibrary')
// compile project(':imlib')
compile project(':imagecrop')
compile project(':emojicon')
compile project(':pullToRefresh')
compile project(':videoplayerlib')
compile project(':player:aliyunPlayer')
compile project(':netdiag')
compile files('libs/org.apache.http.legacy.jar')
//视频截帧
compile files('libs/OpenInstall_v2.2.2.jar')
compile files('libs/hyphenatechat_3.5.5.jar')
compile files('libs/mi_push_v3.6.12.jar')
compile files('libs/oppo_push_v1.0.1.jar')
// compile files('libs/vivo_push_v2.3.1.jar') //vivo证书申请不了
compile project(':hmspush')
compile 'com.github.wseemann:FFmpegMediaMetadataRetriever:1.0.14'
compile 'com.tencent.bugly:crashreport:3.0.0'
compile 'com.meizu.flyme.internet:push-internal:3.7.0@aar'
compile 'com.android.support:support-v4:26.+'
compile 'com.github.yyued:SVGAPlayer-Android:2.4.7'
compile files('libs/agora-rtm-sdk.jar')
}
MobSDK {
appKey "d580ad56b4b5"
appSecret "7fcae59a62342e7e2759e9e397c82bdd"
ShareSDK {
//平台配置信息
devInfo {
Wechat {
appId "wx051631e81ea04ba0"
appSecret "49c81a99b6b45ff167bf986b667b2bcd"
BypassApproval false
}
WechatMoments {
appId "wx051631e81ea04ba0"
appSecret "49c81a99b6b45ff167bf986b667b2bcd"
BypassApproval false
}
QQ {
appId "1108014974"
appKey "fykCvAND9bPOxzdj"
}
QZone {
appId "1108014974"
appKey "fykCvAND9bPOxzdj"
}
}
}
}