Skip to content

Commit 4e5b723

Browse files
build(*): AGP升级,AS升级,依赖库升级
1 parent 03cd505 commit 4e5b723

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

app/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ apply plugin: 'kotlin-android'
44
apply plugin: 'kotlin-android-extensions'
55

66
android {
7-
compileSdkVersion 31
8-
buildToolsVersion "30.0.3"
7+
compileSdkVersion 33
98

109
defaultConfig {
1110
applicationId "com.pengxh.kt.lib"
1211
minSdkVersion 23
13-
targetSdkVersion 31
12+
targetSdkVersion 33
1413
versionCode 1
1514
versionName "1.0"
1615
}
@@ -31,10 +30,10 @@ dependencies {
3130
implementation project(path: ':lite')
3231
implementation 'androidx.core:core-ktx:1.9.0'
3332
implementation 'androidx.appcompat:appcompat:1.6.1'
34-
implementation 'androidx.recyclerview:recyclerview:1.2.1'
33+
implementation 'androidx.recyclerview:recyclerview:1.3.0'
3534
//Google官方授权库
3635
implementation 'pub.devrel:easypermissions:3.0.0'
37-
implementation 'com.google.code.gson:gson:2.9.0'
36+
implementation 'com.google.code.gson:gson:2.10.1'
3837
//沉浸式状态栏。基础依赖包,必须要依赖
3938
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
4039
//图片选择框架

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.6.4'
9+
classpath 'com.android.tools.build:gradle:4.2.2'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111

1212
// NOTE: Do not place your application dependencies here; they belong
@@ -23,6 +23,6 @@ allprojects {
2323
}
2424
}
2525

26-
task clean(type: Delete) {
26+
tasks.register('clean', Delete) {
2727
delete rootProject.buildDir
2828
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Fri Jun 10 18:49:28 CST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

lite/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
44

55
android {
6-
compileSdkVersion 31
7-
buildToolsVersion "30.0.3"
6+
compileSdkVersion 33
87

98
defaultConfig {
109
minSdkVersion 23
11-
targetSdkVersion 31
10+
targetSdkVersion 33
1211
versionCode 1
1312
versionName "1.0"
1413

@@ -50,10 +49,11 @@ dependencies {
5049
implementation 'com.github.bumptech.glide:glide:4.9.0'
5150
//官方Json解析库
5251
implementation 'com.google.code.gson:gson:2.9.0'
52+
def vm_version = '2.5.1'
5353
//Kotlin协程
54-
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
54+
implementation "androidx.lifecycle:lifecycle-runtime-ktx:${vm_version}"
5555
//MVVM+LiveData
56-
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.5.1"
57-
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1"
56+
implementation "androidx.lifecycle:lifecycle-livedata-ktx:${vm_version}"
57+
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${vm_version}"
5858
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
5959
}

0 commit comments

Comments
 (0)