build.gradle
5.5 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 31
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.br_technology.securitytrain_master"
minSdkVersion 21
targetSdkVersion 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
aaptOptions {
// // aapt 附加参数
// additionalParameters '--rename-manifest-package', 'com.example.classloader_demo2'
// 是否开启 png 图片优化检查
cruncherEnabled false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
viewBinding = true
}
// viewBinding {
// enabled = true
// }
}
//统一camera版本
configurations.all {
resolutionStrategy.force 'androidx.camera:camera-core:1.0.1'
resolutionStrategy.force 'androidx.camera:camera-camera2:1.0.1'
resolutionStrategy.force 'androidx.camera:camera-lifecycle:1.0.1'
resolutionStrategy.force 'androidx.camera:camera-view:1.0.0-alpha16'
}
dependencies {
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.2.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
// implementation project(path: ':Library')
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
//smartRefresh
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1'
implementation 'com.scwang.smart:refresh-header-classics:2.0.1'
implementation 'com.scwang.smart:refresh-header-material:2.0.3'
//经典刷新头
implementation 'com.scwang.smart:refresh-footer-classics:2.0.1'
implementation 'com.alibaba:fastjson:1.1.68.android'
// liveData
api "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
// viewModel
api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
api "androidx.lifecycle:lifecycle-extensions:2.2.0"
// App compat and UI things
api 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
//glide
api 'com.github.bumptech.glide:glide:4.11.0'
//retrofit
api "com.squareup.retrofit2:retrofit:2.6.2"
api "com.squareup.retrofit2:converter-gson:2.6.2"
api "com.squareup.retrofit2:adapter-rxjava3:2.9.0"
//rxjava rxandroid
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation "io.reactivex.rxjava3:rxjava:3.0.4"
//recyclerview适配器
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
//今日头条屏幕适配
implementation 'me.jessyan:autosize:1.2.1'
// 基础依赖包,必须要依赖
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
// fragment快速实现(可选)
implementation 'com.gyf.immersionbar:immersionbar-components:3.0.0'
// kotlin扩展(可选)
implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
implementation 'com.kingja.loadsir:loadsir:1.3.8'
implementation 'com.android.support:multidex:1.0.3'
implementation 'io.github.youth5201314:banner:2.2.2'
//完整版引入
// implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer:v8.1.5-jitpack'
implementation 'com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.3.3-release-jitpack'
//是否需要 ExoPlayer 模式
// implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-exo_player2:v8.1.5-jitpack'
//更多 ijk 的编码支持
// implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-ex_so:v8.1.5-jitpack'
//权限
implementation 'com.github.tbruyelle:rxpermissions:0.12'
// CameraX core library
def camerax_version = '1.1.0-alpha07'
implementation "androidx.camera:camera-core:$camerax_version"
// CameraX Camera2 extensions
implementation "androidx.camera:camera-camera2:$camerax_version"
// CameraX Lifecycle library
implementation "androidx.camera:camera-lifecycle:$camerax_version"
// CameraX View class
implementation 'androidx.camera:camera-view:1.0.0-alpha27'
//拍照
implementation 'io.github.lucksiege:pictureselector:v2.7.3-rc08'
//条件选择器
implementation 'com.contrarywind:Android-PickerView:4.1.9'
implementation 'org.greenrobot:eventbus:3.2.0'
api 'com.tencent.tbs:tbssdk:44136'
// 地图库
implementation 'com.tencent.map:tencent-map-vector-sdk:4.4.7'
// 地图组件库,包括小车平移、点聚合等组件功能,详见开发指南。
implementation 'com.tencent.map:sdk-utilities:1.0.6'
implementation 'com.tencent.map.geolocation:TencentLocationSdk-openplatform:7.3.0'
api 'org.jsoup:jsoup:1.11.3'
//umeng 统计
implementation 'com.umeng.umsdk:common:9.4.4'
implementation 'com.umeng.umsdk:asms:1.4.1'
implementation 'com.umeng.umsdk:apm:1.5.2'
}