build.gradle
4.61 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
apply plugin: 'com.android.library'
apply from: './maven_push.gradle'
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
}
buildTypes {
debug {
resValue("string", "ACCOUNT_LABEL", "网家家 内测")
resValue("string", "ACCOUNT_TYPE", "com.c nlive.strike.debug.AccountType")
resValue("string", "ACCOUNT_PROVIDE", "com.cnlive.strike.debug.AccountProvide")
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 {
resValue("string", "ACCOUNT_LABEL", "网家家")
resValue("string", "ACCOUNT_TYPE", "com.cnlive.strike.AccountType")
resValue("string", "ACCOUNT_PROVIDE", "com.cnlive.strike.AccountProvide")
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
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"
]
}
}
dataBinding {
enabled true
}
}
static def stringValue(def value) {
return "\"${value}\""
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
// implementation "com.android.support:support-v4:$rootProject.supportV4"
implementation "com.android.support:appcompat-v7:$rootProject.appcompatV7"
implementation "com.android.support:design:$rootProject.design"
implementation "com.android.support:support-v13:$rootProject.supportV13"
implementation "com.android.support:recyclerview-v7:$rootProject.recyclerviewV7"
//ARouter
implementation "com.alibaba:arouter-api:$rootProject.arouterApiVersion"
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.arouterCompilerVersion"
//base
implementation "com.cnlive.libs:base:$rootProject.libBase"
api "com.cnlive.libs:network:$rootProject.libNetwork"
//CNLive Encipher
implementation "com.cnlive:lib-cnencipher:$rootProject.libCnencipher"
implementation "com.cnlive:lib_cnutil:$rootProject.libCnUtil"
//UI框架库 (http://qmuiteam.com/android/page/document.html)
implementation "com.qmuiteam:qmui:$rootProject.qmui"
implementation "com.cnlive.libs:arch:$rootProject.appArch"
//腾讯
api files('libs/open_sdk_r6008_lite.jar')
//微博
implementation 'com.sina.weibo.sdk:core:4.4.1:openDefaultRelease@aar'
//微信
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.3.1'
//IM
api "com.tencent.imsdk:imsdk:$rootProject.imsdk"
//图片选择器
implementation "com.cnlive.libs:mediapicker:$rootProject.libMediaPicker"
implementation "com.cnlive.libs:emoj:$rootProject.libEmoj"
implementation files('libs/pinyin4j-2.5.0.jar')
//glide
implementation "com.github.bumptech.glide:glide:$rootProject.glide"
implementation "jp.wasabeef:glide-transformations:$rootProject.glideTransformations"
implementation "com.android.support.constraint:constraint-layout:$rootProject.constraintLayout"
annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.compiler"
// eventbus
implementation "org.greenrobot:eventbus:$rootProject.eventBus"
}