-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (86 loc) · 2.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
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'kotlin-kapt'
id 'kotlin-parcelize'
}
android {
compileSdk 30
defaultConfig {
minSdk 21
targetSdk 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
viewBinding true
dataBinding = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.5.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation "androidx.constraintlayout:constraintlayout:2.1.1"
implementation "androidx.cardview:cardview:1.0.0"
api "androidx.fragment:fragment-ktx:1.3.6"
// 协程基础库
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2"
//lifecycle
api "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1"
api "androidx.lifecycle:lifecycle-common-java8:2.3.1"
api "androidx.lifecycle:lifecycle-extensions:2.2.0"
// viewModel
api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
// liveData
api "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"
//Toast
api 'com.github.getActivity:ToastUtils:9.6'
//material-dialog
api "com.afollestad.material-dialogs:core:3.3.0"
//log
api "com.github.zhaokaiqiang.klog:library:1.6.0"
//万能adapter
api "com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4"
//启动优化异步加载
api "com.effective.android:anchors:1.1.1"
//状态栏
api "com.gyf.immersionbar:immersionbar:3.0.0"
api "com.gyf.immersionbar:immersionbar-ktx:3.0.0"
//刷新头
api "com.scwang.smart:refresh-layout-kernel:2.0.1"
api "com.scwang.smart:refresh-header-classics:2.0.1"
//利用liveData发送消息
api 'com.kunminx.arch:unpeek-livedata:7.1.0-beta1'
//通过标签直接生成shape,无需再写shape.xml
api "com.noober.background:core:1.6.5"
//管理界面状态
api "com.kingja.loadsir:loadsir:1.3.8"
api 'com.squareup.okhttp3:okhttp:4.9.1'
//Rxhttp
api 'com.github.liujingxing.rxhttp:rxhttp:2.8.3'
//6.0以上权限请求管理
api 'com.github.tbruyelle:rxpermissions:0.10.2'
//navigation
api 'androidx.navigation:navigation-fragment-ktx:2.3.5'
api 'androidx.navigation:navigation-ui-ktx:2.3.5'
//卡片布局
api 'androidx.cardview:cardview:1.0.0'
}