build.gradle
2.45 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
apply plugin: 'com.android.library'
android {
// compileSdkVersion rootProject.ext.compileSdkVersion
// buildToolsVersion rootProject.ext.buildToolsVersion
//
// defaultConfig {
// minSdkVersion rootProject.ext.minSdkVersion
// targetSdkVersion rootProject.ext.targetSdkVersion
// versionCode rootProject.ext.versionCode
// versionName rootProject.ext.versionName
// javaCompileOptions {
// annotationProcessorOptions {
// arguments = [AROUTER_MODULE_NAME: project.getName(), AROUTER_GENERATE_DOC: "enable"]
// }
// }
// }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dataBinding {
enabled true
}
dexOptions {
javaMaxHeapSize '4g'
}
buildTypes {
debug {
zipAlignEnabled true
buildConfigField("String", "QQ_SHARE", stringValue("1106866745"))
buildConfigField("String", "WECHAT_SHARE", stringValue("wx9b7f9443a8ccf15a"))
buildConfigField("String", "WECHAT_KEY", stringValue("8d9970bf2901411d8dd2bffb344f147e"))
buildConfigField("String", "SEND_AUTH_REQ_STATE", stringValue("com_cnlive_strike_debug"))
manifestPlaceholders = [
QQ_APPKEY: "tencent1106866745"
]
}
release {
zipAlignEnabled true
buildConfigField("String", "QQ_SHARE", stringValue("1106691520"))
buildConfigField("String", "WECHAT_SHARE", stringValue("wxed528fc749b7ee88"))
buildConfigField("String", "WECHAT_KEY", stringValue("729c3d3055fe336bcdef7020c2548e89"))
buildConfigField("String", "SEND_AUTH_REQ_STATE", stringValue("com_cnlive_strike"))
manifestPlaceholders = [
QQ_APPKEY: "tencent1106691520"
]
}
}
}
static def stringValue(def value) {
return "\"${value}\""
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//微信
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.3.1'
//QQ
implementation files('libs/open_sdk_r6008_lite.jar')
//微博
implementation 'com.sina.weibo.sdk:core:4.4.1:openDefaultRelease@aar'
implementation project(':core:network')
implementation project(':core:base')
//------------------------
//统计
implementation "com.cnlive.libs:analytics:1.1.2"
}