Skip to content

Commit

Permalink
Update Dependencies (#28)
Browse files Browse the repository at this point in the history
* test build.gradle.kts

* Update dependency androidx.compose:compose-bom to v2024.09.03

* Update dependency androidx.navigation:navigation-compose to v2.8.2

* Update dependency androidx.navigation:navigation-runtime-ktx to v2.8.2

* Update dependency com.android.application to v8.8.0-alpha05

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
lings03 and renovate[bot] authored Oct 7, 2024
1 parent 40ff12c commit 3d523f9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
28 changes: 27 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import kotlin.collections.addAll

plugins {
alias(libs.plugins.androidApplication)
alias(libs.plugins.jetbrainsKotlinAndroid)
Expand All @@ -6,6 +8,8 @@ plugins {
alias(libs.plugins.serialization)
}

val supportedAbis = arrayOf("armeabi-v7a", "arm64-v8a", "x86", "x86_64")

android {
signingConfigs {
create("release") {
Expand Down Expand Up @@ -42,6 +46,17 @@ android {
useSupportLibrary = true
}
signingConfig = signingConfigs.getByName("release")

ndk {
abiFilters.addAll(supportedAbis)
debugSymbolLevel = "FULL"
}

externalNativeBuild {
cmake {
arguments += "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
}
}
}

buildTypes {
Expand All @@ -62,18 +77,27 @@ android {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
isCoreLibraryDesugaringEnabled = true
}

kotlinOptions {
jvmTarget = "21"
}

buildFeatures {
buildConfig = true
compose = true
aidl = true
}

composeOptions {
kotlinCompilerExtensionVersion = "2.0.0"
}

packaging {
dex {
useLegacyPackaging = false
}
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
Expand Down Expand Up @@ -164,8 +188,10 @@ dependencies {
implementation(libs.accompanist.systemuicontroller)
// Glide实现预览图压缩
implementation(libs.glide)

// pager2
implementation(libs.accompanist.pager)
// 依赖注入
coreLibraryDesugaring(libs.desugar)
}


9 changes: 5 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
accompanistPager = "0.36.0"
accompanistPermissions = "0.36.0"
agp = "8.6.1"
agp = "8.8.0-alpha05"
api = "13.1.5"
coilCompose = "2.7.0"
commonsCompress = "1.27.1"
Expand All @@ -16,8 +16,8 @@ junit = "4.13.2"
kotlinxSerializationJson = "1.7.3"
activityCompose = "1.9.2"
lifecycleViewmodelCompose = "2.8.6"
navigationCompose = "2.8.1"
navigationRuntimeKtx = "2.8.1"
navigationCompose = "2.8.2"
navigationRuntimeKtx = "2.8.2"
okhttpVersion = "4.12.0"
provider = "13.1.5"
retrofit = "2.11.0"
Expand Down Expand Up @@ -53,7 +53,7 @@ androidx-runtime-livedata = { module = "androidx.compose.runtime:runtime-livedat
androidx-runtime-rxjava2 = { module = "androidx.compose.runtime:runtime-rxjava2" }
api = { module = "dev.rikka.shizuku:api", version.ref = "api" }
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coilCompose" }
compose-bom = { module = "androidx.compose:compose-bom", version = "2024.09.02" }
compose-bom = { module = "androidx.compose:compose-bom", version = "2024.09.03" }
commons-compress = { module = "org.apache.commons:commons-compress", version.ref = "commonsCompress" }
converter-gson = { module = "com.squareup.retrofit2:converter-gson", version.ref = "converterGson" }
converter-scalars = { module = "com.squareup.retrofit2:converter-scalars", version.ref = "converterScalars" }
Expand All @@ -72,6 +72,7 @@ x-zip-jbinding-xandroid = { module = "com.github.omicronapps:7-Zip-JBinding-4And
xz = { module = "org.tukaani:xz", version.ref = "xz" }
zip4j = { module = "net.lingala.zip4j:zip4j", version.ref = "zip4j" }
androidx-roomcompiler = { group = "androidx.room", name = "room-compiler", version.ref = "roomVersion" }
desugar = "com.android.tools:desugar_jdk_libs_nio:2.1.2"

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 3d523f9

Please sign in to comment.