build.gradle
3.11 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
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','armeabi'
}
}
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')
}
// 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')
}