From b389307448ad3f21094dccc99f66acc693f0e9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 16 Feb 2026 13:10:06 +0800 Subject: [PATCH] Update dependencies --- app/build.gradle.kts | 16 ++++++++-------- .../sfa/compose/component/UpdateDialog.kt | 5 +++-- build.gradle.kts | 16 ++++++++-------- gradle.properties | 5 ++--- third_party/libxposed-api/build.gradle.kts | 2 +- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index d658663..a7394e5 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -183,8 +183,8 @@ dependencies { // API level specific versions val lifecycleVersion23 = "2.10.0" val roomVersion23 = "2.8.4" - val workVersion23 = "2.11.0" - val cameraVersion23 = "1.5.2" + val workVersion23 = "2.11.1" + val cameraVersion23 = "1.5.3" val browserVersion23 = "1.9.0" val lifecycleVersion21 = "2.9.4" @@ -269,8 +269,8 @@ dependencies { "otherLegacyImplementation"("com.github.topjohnwu.libsu:service:$libsuVersion") // Compose dependencies - API 23+ (play/other) - val composeBom23 = platform("androidx.compose:compose-bom:2026.01.01") - val activityVersion23 = "1.12.2" + val composeBom23 = platform("androidx.compose:compose-bom:2026.02.00") + val activityVersion23 = "1.12.4" val lifecycleComposeVersion23 = "2.10.0" "playImplementation"(composeBom23) @@ -280,7 +280,7 @@ dependencies { "playImplementation"("androidx.compose.ui:ui-tooling-preview") "playImplementation"("androidx.compose.material:material-icons-extended") "playImplementation"("androidx.activity:activity-compose:$activityVersion23") - "playImplementation"("androidx.navigation:navigation-compose:2.9.6") + "playImplementation"("androidx.navigation:navigation-compose:2.9.7") "playImplementation"("androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycleComposeVersion23") "playImplementation"("androidx.compose.runtime:runtime-livedata") @@ -291,7 +291,7 @@ dependencies { "otherImplementation"("androidx.compose.ui:ui-tooling-preview") "otherImplementation"("androidx.compose.material:material-icons-extended") "otherImplementation"("androidx.activity:activity-compose:$activityVersion23") - "otherImplementation"("androidx.navigation:navigation-compose:2.9.6") + "otherImplementation"("androidx.navigation:navigation-compose:2.9.7") "otherImplementation"("androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycleComposeVersion23") "otherImplementation"("androidx.compose.runtime:runtime-livedata") @@ -307,7 +307,7 @@ dependencies { "otherLegacyImplementation"("androidx.compose.ui:ui-tooling-preview") "otherLegacyImplementation"("androidx.compose.material:material-icons-extended") "otherLegacyImplementation"("androidx.activity:activity-compose:$activityVersion21") - "otherLegacyImplementation"("androidx.navigation:navigation-compose:2.9.6") + "otherLegacyImplementation"("androidx.navigation:navigation-compose:2.9.7") "otherLegacyImplementation"("androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycleComposeVersion21") "otherLegacyImplementation"("androidx.compose.runtime:runtime-livedata") @@ -318,7 +318,7 @@ dependencies { // Common Compose-related libraries implementation("sh.calvin.reorderable:reorderable:3.0.0") - implementation("com.github.jeziellago:compose-markdown:0.5.4") + implementation("com.github.jeziellago:compose-markdown:0.5.8") implementation("org.kodein.emoji:emoji-kt:2.3.0") // Xposed API for self-hooking VPN hide module diff --git a/app/src/main/java/io/nekohasekai/sfa/compose/component/UpdateDialog.kt b/app/src/main/java/io/nekohasekai/sfa/compose/component/UpdateDialog.kt index 791c78c..ff18d53 100644 --- a/app/src/main/java/io/nekohasekai/sfa/compose/component/UpdateDialog.kt +++ b/app/src/main/java/io/nekohasekai/sfa/compose/component/UpdateDialog.kt @@ -50,8 +50,9 @@ fun UpdateAvailableDialog(updateInfo: UpdateInfo, onDismiss: () -> Unit, onUpdat Spacer(modifier = Modifier.height(12.dp)) MarkdownText( markdown = processedNotes, - style = MaterialTheme.typography.bodySmall, - color = MaterialTheme.colorScheme.onSurfaceVariant, + style = MaterialTheme.typography.bodySmall.copy( + color = MaterialTheme.colorScheme.onSurfaceVariant, + ), ) } } diff --git a/build.gradle.kts b/build.gradle.kts index 4b41f81..7ccad6e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,12 +1,12 @@ plugins { - id("com.android.application") version "9.0.0" apply false - id("com.android.library") version "9.0.0" apply false - id("org.jetbrains.kotlin.android") version "2.2.0" apply false - id("org.jetbrains.kotlin.plugin.parcelize") version "2.2.0" apply false - id("com.google.devtools.ksp") version "2.2.0-2.0.2" apply false - id("com.github.triplet.play") version "3.13.0" apply false - id("org.jetbrains.kotlin.plugin.compose") version "2.2.0" apply false - id("org.jetbrains.kotlin.plugin.serialization") version "2.2.0" apply false + id("com.android.application") version "9.0.1" apply false + id("com.android.library") version "9.0.1" apply false + id("org.jetbrains.kotlin.android") version "2.3.10" apply false + id("org.jetbrains.kotlin.plugin.parcelize") version "2.3.10" apply false + id("com.google.devtools.ksp") version "2.3.5" apply false + id("com.github.triplet.play") version "4.0.0" apply false + id("org.jetbrains.kotlin.plugin.compose") version "2.3.10" apply false + id("org.jetbrains.kotlin.plugin.serialization") version "2.3.10" apply false alias(libs.plugins.spotless) apply false id("io.gitlab.arturbosch.detekt") version "1.23.8" } diff --git a/gradle.properties b/gradle.properties index ceb589a..b36c765 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,7 +21,6 @@ kotlin.code.style=official # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true -# Workaround for gradle-play-publisher not supporting AGP 9.0 yet -# See https://github.com/Triple-T/gradle-play-publisher/issues/1175 +# Keep explicit Kotlin Gradle plugins enabled for current build scripts/plugins. android.newDsl=false -android.builtInKotlin=false \ No newline at end of file +android.builtInKotlin=false diff --git a/third_party/libxposed-api/build.gradle.kts b/third_party/libxposed-api/build.gradle.kts index ccc91f2..ce3b959 100644 --- a/third_party/libxposed-api/build.gradle.kts +++ b/third_party/libxposed-api/build.gradle.kts @@ -22,5 +22,5 @@ android { } dependencies { - compileOnly("androidx.annotation:annotation:1.7.1") + compileOnly("androidx.annotation:annotation:1.9.1") }