build.gradle
3.78 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
apply plugin: 'com.android.application'
//apply plugin: 'kotlin-android'
android {
compileSdkVersion compile_sdk_version
buildToolsVersion build_tools_version
defaultConfig {
applicationId "com.dayu.bigfish"
minSdkVersion min_sdk_version
targetSdkVersion target_sdk_version
versionCode version_code
versionName verson_name
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
javaCompileOptions {
annotationProcessorOptions {
arguments = [moduleName: project.getName()]
}
}
ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
}
}
signingConfigs {
release {
keyAlias 'keybigfish'
keyPassword '123456789'
storeFile file('app_key.jks')
storePassword '123456789'
}
}
buildTypes {
release {
signingConfig android.signingConfigs.release
minifyEnabled isReleaseMinify
shrinkResources isReleaseMinify //是否清理无用资源,依赖于minifyEnabled
zipAlignEnabled isReleaseMinify //是否启用zipAlign压缩
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
signingConfig android.signingConfigs.release
minifyEnabled isDebugMinify
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
jniLibs.srcDirs = ['libs']
assets.srcDirs = ['src/main/assets', 'src/main/assets/']
}
}
aaptOptions {
cruncherEnabled = false
useNewCruncher = false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dataBinding {
enabled = true
}
lintOptions {
abortOnError false
checkReleaseBuilds false
}
dexOptions {
preDexLibraries = false
}
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
api fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
//ARouter
annotationProcessor "com.alibaba:arouter-compiler:$arouter_compiler_version"
if (isMessageModule.toBoolean()) {
api project(':messageCenter')
}
if (isUserModule.toBoolean()) {
api project(':userCenter')
}
if (isOrderModule.toBoolean()) {
api project(':orderCenter')
}
if (isManagerModule.toBoolean()) {
api project(':managercenter')
}
if (isSaleModule.toBoolean()) {
api project(':saleCenter')
}
if (isLearnModule.toBoolean()) {
api project(':learnCenter')
}
// 友盟基础组件库(所有友盟业务SDK都依赖基础组件库)
implementation 'com.umeng.umsdk:common:9.5.2'// (必选)
implementation 'com.umeng.umsdk:asms:1.6.3'// 必选
implementation 'com.umeng.umsdk:share-core:7.2.0'//分享核心库,必选
implementation 'com.umeng.umsdk:share-board:7.2.0'//分享面板功能,可选
//在线依赖目前支持QQ、微信、新浪微博、支付宝、钉钉;若需支持其他平台,请选择手动下载SDK
implementation 'com.umeng.umsdk:share-wx:7.1.9' //微信完整版
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.9'//微信官方依赖库,必选
// compile(name: 'orderCenter-debug', ext: 'aar')
// compile(name: 'userCenter-debug', ext: 'aar')
// compile(name: 'messageCenter-debug', ext: 'aar')
// compile(name: 'provider-debug', ext: 'aar')
// compile(name: 'baseSDK-debug', ext: 'aar')
}