From 1a5c3c1f6f9e73d27d2186d0b8c83896535ede4c Mon Sep 17 00:00:00 2001 From: Koitharu Date: Fri, 21 Mar 2025 08:37:22 +0200 Subject: [PATCH] Update dependencies --- .../koitharu/kotatsu/core/util/ext/Resources.kt | 10 +++++++--- .../koitharu/kotatsu/list/ui/model/ListHeader.kt | 1 - gradle/libs.versions.toml | 16 ++++++++-------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/core/util/ext/Resources.kt b/app/src/main/kotlin/org/koitharu/kotatsu/core/util/ext/Resources.kt index c62c597cb..bc2a051f9 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/core/util/ext/Resources.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/core/util/ext/Resources.kt @@ -3,6 +3,7 @@ package org.koitharu.kotatsu.core.util.ext import android.annotation.SuppressLint import android.content.Context import android.content.res.Resources +import android.os.Build import androidx.annotation.PluralsRes import androidx.annotation.Px import androidx.core.util.TypedValueCompat @@ -30,7 +31,10 @@ fun Context.getSystemBoolean(resName: String, fallback: Boolean): Boolean { fun Resources.getQuantityStringSafe(@PluralsRes resId: Int, quantity: Int, vararg formatArgs: Any): String = try { getQuantityString(resId, quantity, *formatArgs) } catch (e: Resources.NotFoundException) { - e.report(silent = true) - e.printStackTraceDebug() - formatArgs.firstOrNull()?.toString() ?: quantity.toString() + if (Build.VERSION.SDK_INT == Build.VERSION_CODES.VANILLA_ICE_CREAM) { // known issue + e.printStackTraceDebug() + formatArgs.firstOrNull()?.toString() ?: quantity.toString() + } else { + throw e + } } diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/model/ListHeader.kt b/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/model/ListHeader.kt index 8fda6f89e..1aa401c83 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/model/ListHeader.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/list/ui/model/ListHeader.kt @@ -6,7 +6,6 @@ import org.koitharu.kotatsu.core.model.getLocalizedTitle import org.koitharu.kotatsu.core.ui.model.DateTimeAgo import org.koitharu.kotatsu.parsers.model.MangaChapter -@ConsistentCopyVisibility data class ListHeader private constructor( private val textRaw: Any, @StringRes val buttonTextRes: Int, diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6586770e3..dc052fde9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,23 +7,23 @@ avifDecoder = "1.1.1.14d8e3c4" biometric = "1.2.0-alpha05" coil = "3.1.0" collections = "1.5.0" -#noinspection GradleDependency - 2.5.3 cause crashes +#noinspection NewerVersionAvailable,GradleDependency - 2.5.3 cause crashes conscrypt = "2.5.2" constraintlayout = "2.2.1" coreKtx = "1.15.0" coroutines = "1.10.1" desugar = "2.1.5" -diskLruCache = "1.4" +diskLruCache = "1.5" fragment = "1.8.6" -gradle = "8.8.2" -guava = "33.3.1-android" -dagger = "2.55" +gradle = "8.9.0" +guava = "33.4.5-android" +dagger = "2.56" hilt = "1.2.0" json = "20250107" junit = "4.13.2" junitKtx = "1.2.1" -kotlin = "2.1.10" -ksp = "2.1.10-1.0.29" +kotlin = "2.1.20" +ksp = "2.1.20-1.0.31" leakcanary = "3.0-alpha-8" lifecycle = "2.8.7" markwon = "4.6.2" @@ -31,7 +31,7 @@ material = "1.13.0-alpha11" moshi = "1.15.2" okhttp = "4.12.0" okio = "3.10.2" -parsers = "5420290564" +parsers = "bebc615376" preference = "1.2.1" recyclerview = "1.4.0" room = "2.6.1"