build.gradle
2.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
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"))
manifestPlaceholders = [
QQ_APPKEY : "tencent1106866745"
]
}
release {
zipAlignEnabled true
buildConfigField("String", "QQ_SHARE", stringValue("1106691520"))
buildConfigField("String", "WECHAT_SHARE", stringValue("wxed528fc749b7ee88"))
manifestPlaceholders = [
QQ_APPKEY : "tencent1106691520"
]
}
}
}
static def stringValue(def value) {
return "\"${value}\""
}
dependencies {
api fileTree(include: ['*.jar'], dir: 'libs')
implementation "com.android.support:appcompat-v7:$rootProject.appcompatV7"
implementation "com.android.support:recyclerview-v7:$rootProject.recyclerviewV7"
//CNLive Encipher
implementation "com.cnlive.libs:base:$rootProject.libBase"
implementation "com.cnlive.libs:analytics:$rootProject.libAnalytics"
//ARouter
implementation "com.alibaba:arouter-api:$rootProject.arouterApiVersion"
annotationProcessor "com.alibaba:arouter-compiler:$rootProject.arouterCompilerVersion"
implementation "com.cnlive.libs:arch:$rootProject.appArch"
implementation "com.qmuiteam:qmui:$rootProject.qmui"
implementation project(':app_user')
implementation project(':lib_network')
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:5.3.1'
//glide
implementation "com.github.bumptech.glide:glide:$rootProject.glide"
implementation "jp.wasabeef:glide-transformations:$rootProject.glideTransformations"
annotationProcessor "com.github.bumptech.glide:compiler:$rootProject.compiler"
implementation files('libs/open_sdk_r6008_lite.jar')
}