chore: 更新依赖

This commit is contained in:
HuanCheng65 2023-03-10 12:43:32 +08:00
parent a1f3274a5f
commit 9035f8101d
No known key found for this signature in database
GPG Key ID: E9031EF91A805148
2 changed files with 27 additions and 17 deletions

View File

@ -6,7 +6,7 @@ plugins {
id 'kotlinx-serialization' id 'kotlinx-serialization'
id 'dagger.hilt.android.plugin' id 'dagger.hilt.android.plugin'
id 'com.squareup.wire' id 'com.squareup.wire'
id 'com.google.devtools.ksp' version "$kotlin_version-1.0.8" id 'com.google.devtools.ksp' version "$kotlin_version-1.0.9"
} }
def keystoreProperties = new Properties() def keystoreProperties = new Properties()
@ -49,7 +49,7 @@ android {
compose true compose true
} }
composeOptions { composeOptions {
kotlinCompilerExtensionVersion '1.3.2' kotlinCompilerExtensionVersion compose_compiler_version
} }
signingConfigs { signingConfigs {
release { release {
@ -120,7 +120,7 @@ dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1' implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1'
// implementation 'androidx.compose.material3:material3:1.0.0' // implementation 'androidx.compose.material3:material3:1.0.0'
def media3_version = "1.0.0-beta03" def media3_version = "1.0.0-rc02"
implementation "androidx.media3:media3-exoplayer:$media3_version" implementation "androidx.media3:media3-exoplayer:$media3_version"
implementation "androidx.media3:media3-ui:$media3_version" implementation "androidx.media3:media3-ui:$media3_version"
@ -148,7 +148,7 @@ dependencies {
implementation "com.google.accompanist:accompanist-swiperefresh:$accompanist_version" implementation "com.google.accompanist:accompanist-swiperefresh:$accompanist_version"
implementation "com.google.accompanist:accompanist-webview:$accompanist_version" implementation "com.google.accompanist:accompanist-webview:$accompanist_version"
def sketch_version = "3.2.0-beta02" def sketch_version = "3.2.0"
implementation "io.github.panpf.sketch3:sketch:$sketch_version" implementation "io.github.panpf.sketch3:sketch:$sketch_version"
implementation "io.github.panpf.sketch3:sketch-compose:$sketch_version" implementation "io.github.panpf.sketch3:sketch-compose:$sketch_version"
implementation "io.github.panpf.sketch3:sketch-extensions:$sketch_version" implementation "io.github.panpf.sketch3:sketch-extensions:$sketch_version"
@ -156,17 +156,23 @@ dependencies {
implementation "io.github.panpf.sketch3:sketch-zoom:$sketch_version" implementation "io.github.panpf.sketch3:sketch-zoom:$sketch_version"
implementation "io.github.panpf.sketch3:sketch-okhttp:$sketch_version" implementation "io.github.panpf.sketch3:sketch-okhttp:$sketch_version"
def composeBom = platform("androidx.compose:compose-bom:$compose_bom_version")
implementation composeBom
androidTestImplementation composeBom
def compose_version = '1.3.1' implementation 'androidx.compose.material:material'
implementation "androidx.compose.animation:animation:$compose_version" implementation 'androidx.compose.material:material-icons-core'
implementation "androidx.compose.ui:ui:$compose_version" // Optional - Add full set of material icons
implementation "androidx.compose.ui:ui-tooling:$compose_version" implementation 'androidx.compose.material:material-icons-extended'
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation "androidx.compose.foundation:foundation:$compose_version"
implementation "androidx.compose.material:material:$compose_version" // Android Studio Preview support
implementation "androidx.compose.material:material-icons-extended:$compose_version" implementation 'androidx.compose.ui:ui-tooling-preview'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
// UI Tests
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
implementation 'androidx.activity:activity-compose:1.6.1' implementation 'androidx.activity:activity-compose:1.6.1'
implementation "com.google.android.material:compose-theme-adapter:1.2.1" implementation "com.google.android.material:compose-theme-adapter:1.2.1"
@ -185,7 +191,7 @@ dependencies {
api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
api 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4' api 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
def lifecycle_version = "2.5.1" def lifecycle_version = "2.6.0"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
@ -196,7 +202,7 @@ dependencies {
//AndroidX //AndroidX
implementation "androidx.appcompat:appcompat:1.6.1" implementation "androidx.appcompat:appcompat:1.6.1"
implementation "androidx.annotation:annotation:1.5.0" implementation "androidx.annotation:annotation:1.6.0"
implementation "androidx.constraintlayout:constraintlayout:2.1.4" implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "androidx.core:core-ktx:1.9.0" implementation "androidx.core:core-ktx:1.9.0"
implementation 'androidx.core:core-splashscreen:1.0.0' implementation 'androidx.core:core-splashscreen:1.0.0'

View File

@ -4,7 +4,11 @@ buildscript {
ext { ext {
glide_version = '4.14.2' glide_version = '4.14.2'
retrofit_version = "2.9.0" retrofit_version = "2.9.0"
kotlin_version = '1.7.21' kotlin_version = '1.8.10'
//https://developer.android.com/jetpack/androidx/releases/compose-kotlin
compose_compiler_version = '1.4.3'
//https://developer.android.com/jetpack/compose/setup#bom-version-mapping
compose_bom_version = '2023.01.00'
wire_version = '4.4.3' wire_version = '4.4.3'
hilt_version = '2.44.2' hilt_version = '2.44.2'
booster_version = '4.15.0' booster_version = '4.15.0'