Update dependencies

This commit is contained in:
Koitharu
2025-03-21 08:37:22 +02:00
parent 0b8fbf892a
commit 1a5c3c1f6f
3 changed files with 15 additions and 12 deletions

View File

@@ -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
}
}

View File

@@ -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,

View File

@@ -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"