Skip to content

Commit 583b600

Browse files
committed
更新了一些依赖
1 parent 8bd52b4 commit 583b600

File tree

6 files changed

+18
-23
lines changed

6 files changed

+18
-23
lines changed

app-kt/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ dependencies {
6868
implementation 'androidx.core:core-ktx:1.3.2'
6969
// Lifecycle KTX 为每个 Lifecycle 对象定义一个 LifecycleScope。在此范围内启动的协程会在 Lifecycle 被销毁时取消。
7070
// 您可以使用 lifecycle.coroutineScope 或 lifecycleOwner.lifecycleScope 属性访问 Lifecycle 的 CoroutineScope。
71-
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
71+
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1"
7272
// 使用 LiveData 时,您可能需要异步计算值。例如,您可能需要检索用户的偏好设置并将其传送给界面。
7373
// 在这些情况下,LiveData KTX 可提供一个 liveData 构建器函数,该函数会调用 suspend 函数,并将结果作为 LiveData 对象传送。
74-
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
74+
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"
7575
// ViewModel KTX 库提供了一个 viewModelScope() 函数,可让您更轻松地从 ViewModel 启动协程。
7676
// CoroutineScope 绑定至 Dispatchers.Main,并且会在清除 ViewModel 后自动取消。
7777
// 您可以使用 viewModelScope(),而无需为每个 ViewModel 创建一个新范围。
78-
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
78+
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
7979

8080
// 协程
81-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2"
82-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2'
81+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0"
82+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0'
8383

8484
// hilt
8585
implementation "com.google.dagger:hilt-android:$hilt_version"

build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ apply from: "config.gradle"
33
buildscript {
44

55
ext {
6-
kotlin_version = '1.4.32'
7-
hilt_version = '2.34.1-beta'
6+
kotlin_version = '1.5.10'
7+
hilt_version = '2.36'
88
}
99

1010
repositories {
11-
// maven { url "https://maven.aliyun.com/repository/google" }
12-
// maven { url "https://maven.aliyun.com/repository/public" }
1311
google()
1412
jcenter()
13+
mavenCentral()
14+
maven { url 'https://jitpack.io' }
1515
}
1616
dependencies {
17-
classpath 'com.android.tools.build:gradle:4.1.3'
17+
classpath 'com.android.tools.build:gradle:4.2.1'
1818
// bintray上传发布
1919
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
2020
// kotlin
@@ -30,8 +30,6 @@ allprojects {
3030
flatDir {
3131
dirs '../libs'
3232
}
33-
// maven { url "https://maven.aliyun.com/repository/google" }
34-
// maven { url "https://maven.aliyun.com/repository/public" }
3533
google()
3634
jcenter()
3735
mavenCentral()

config.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ext {
88
retrofit = "2.9.0"
99
glide = "4.12.0"
1010
vlayout = "1.2.36"
11-
camerax_version = "1.0.0-rc04"
11+
camerax_version = "1.0.0"
1212
smartrefresh = "2.0.1"
1313
arouter = "1.5.1"
1414

@@ -20,11 +20,10 @@ ext {
2020
]
2121

2222
googleDependencies = [
23-
"appcompat" : "androidx.appcompat:appcompat:1.2.0",
24-
"annotation" : "androidx.annotation:annotation:1.1.0",
25-
"legacy-support-v4" : "androidx.legacy:legacy-support-v4:1.0.0",
23+
"appcompat" : "androidx.appcompat:appcompat:1.3.0",
24+
"annotation" : "androidx.annotation:annotation:1.2.0",
2625
"vectordrawable-animated": "androidx.vectordrawable:vectordrawable-animated:1.1.0",
27-
"constraintlayout" : "androidx.constraintlayout:constraintlayout:2.0.2",
26+
"constraintlayout" : "androidx.constraintlayout:constraintlayout:2.0.4",
2827
"multidex" : "androidx.multidex:multidex:2.0.1",
2928
"material" : "com.google.android.material:material:1.2.1",
3029
]
@@ -69,8 +68,8 @@ ext {
6968
"matisse" : "com.zhihu.android:matisse:0.5.3-beta3",
7069
"androidsvg" : "com.caverock:androidsvg-aar:1.4",
7170
"camera-camera2" : "androidx.camera:camera-camera2:${camerax_version}",
72-
"camera-view" : "androidx.camera:camera-view:1.0.0-alpha23",
73-
"camera-extensions": "androidx.camera:camera-extensions:1.0.0-alpha23",
71+
"camera-view" : "androidx.camera:camera-view:1.0.0-alpha25",
72+
"camera-extensions": "androidx.camera:camera-extensions:1.0.0-alpha25",
7473
"camera-lifecycle" : "androidx.camera:camera-lifecycle:${camerax_version}",
7574
]
7675

@@ -90,7 +89,7 @@ ext {
9089
// 微信
9190
"wechat-sdk-mta" : "com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.6.4",
9291
// bugly
93-
"crashreport_upgrade": "com.tencent.bugly:crashreport_upgrade:1.4.2",
92+
"crashreport_upgrade": "com.tencent.bugly:crashreport_upgrade:1.5.23",
9493
]
9594

9695
compilerDependencies = [

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

quicklib/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ dependencies {
4040

4141
api googleDependencies["appcompat"]
4242
api googleDependencies["annotation"]
43-
api googleDependencies["legacy-support-v4"]
4443
api googleDependencies["vectordrawable-animated"]
4544
api googleDependencies["constraintlayout"]
4645
api googleDependencies["material"]

widget/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ dependencies {
3232
implementation fileTree(include: ['*.jar'], dir: 'libs')
3333
api googleDependencies["appcompat"]
3434
api googleDependencies["annotation"]
35-
api googleDependencies["legacy-support-v4"]
3635
api googleDependencies["vectordrawable-animated"]
3736
api googleDependencies["constraintlayout"]
3837
api googleDependencies["material"]

0 commit comments

Comments
 (0)