build.gradle
3.8 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
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.br_technology.securitytrain_master"
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
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'
}
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 "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'
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"
// 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.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'
}