/
build.gradle
114 lines (97 loc) · 3.96 KB
/
build.gradle
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
if (!isNeedUserModule.toBoolean()) {
apply plugin: 'com.android.application'
} else {
apply plugin: 'com.android.library'
}
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion rootProject.ext.android["minSdkVersion"]
targetSdkVersion rootProject.ext.android["targetSdkVersion"]
versionCode rootProject.ext.android["versionCode"]
versionName rootProject.ext.android["versionName"]
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = [moduleName: project.getName()]
}
}
ndk {
//设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
// abiFilters "armeabi", "armeabi-v7a", "x86"//, "arm64-v8a", "x86", "arm64-v8a", "x86_64"
abiFilters "armeabi-v7a"
// abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
if (!isNeedUserModule.toBoolean()) {
manifest.srcFile 'src/main/app/AndroidManifest.xml'
} else {
manifest.srcFile 'src/main/module/AndroidManifest.xml'
}
}
}
packagingOptions {
exclude 'META-INF/rxjava.properties'
}
//360打包时需要加入这个,否则manifest文件中有警告会停止打包
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api rootProject.ext.dependencies["androidx.appcompat"]
api rootProject.ext.dependencies["androidx.support.v4"]
api rootProject.ext.dependencies["constraintlayout"]
api rootProject.ext.dependencies["ahbottomnavigation"]
api rootProject.ext.dependencies["material"]
api rootProject.ext.dependencies["SmartRefreshLayout"]
api rootProject.ext.dependencies["SmartRefreshHeader"]
api rootProject.ext.dependencies["BaseRecyclerViewAdapterHelper"]
api rootProject.ext.dependencies["fragmentation"]
api rootProject.ext.dependencies["fragmentation-swipeback"]
api rootProject.ext.dependencies["eventbus-activity-scope"]
api rootProject.ext.dependencies["eventbus"]
api 'com.github.LuckSiege.PictureSelector:picture_library:v2.2.3'
api 'de.hdodenhof:circleimageview:2.2.0'
api 'me.jessyan:autosize:1.1.2'
api ('cn.qqtheme.framework:WheelPicker:1.5.0') {
exclude group: 'com.android.support'
}
api 'com.prolificinteractive:material-calendarview:1.4.3'
api 'com.timehop.stickyheadersrecyclerview:library:0.4.3'
api 'androidx.multidex:multidex:2.0.1'
api rootProject.ext.dependencies["gson"]
api rootProject.ext.dependencies["retrofit"]
api rootProject.ext.dependencies["converter-gson"]
api rootProject.ext.dependencies["converter-gson"]
api rootProject.ext.dependencies["adapter-rxjava"]
api rootProject.ext.dependencies["okhttp"]
api rootProject.ext.dependencies["logging.interceptor"]
api rootProject.ext.dependencies["rxandroid"]
api rootProject.ext.dependencies["logger"]
api rootProject.ext.dependencies["butterknife"]
annotationProcessor rootProject.ext.dependencies["butterknife-compiler"]
api rootProject.ext.dependencies["dagger"]
annotationProcessor rootProject.ext.dependencies["dagger-compiler"]
api 'com.amap.api:3dmap:6.8.0'
api 'com.amap.api:map2d:5.2.0'
api 'com.amap.api:search:6.5.0.1'
api 'com.amap.api:location:4.5.1'
api rootProject.ext.dependencies["junit"]
api rootProject.ext.dependencies["test.runer"]
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}