Update dependencies

This commit is contained in:
Koitharu
2024-10-02 11:34:51 +03:00
parent f518acb8ee
commit a4345a40bf
4 changed files with 9 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ afterEvaluate {
} }
dependencies { dependencies {
//noinspection GradleDependency //noinspection GradleDependency
implementation('com.github.KotatsuApp:kotatsu-parsers:1.1') { implementation('com.github.KotatsuApp:kotatsu-parsers:a8df8665ae') {
exclude group: 'org.json', module: 'json' exclude group: 'org.json', module: 'json'
} }
@@ -137,7 +137,7 @@ dependencies {
implementation 'io.coil-kt:coil-base:2.7.0' implementation 'io.coil-kt:coil-base:2.7.0'
implementation 'io.coil-kt:coil-svg:2.7.0' implementation 'io.coil-kt:coil-svg:2.7.0'
implementation 'com.github.KotatsuApp:subsampling-scale-image-view:b2c5a6d5ca' implementation 'com.github.KotatsuApp:subsampling-scale-image-view:e04098de68'
implementation 'com.github.solkin:disk-lru-cache:1.4' implementation 'com.github.solkin:disk-lru-cache:1.4'
implementation 'io.noties.markwon:core:4.6.2' implementation 'io.noties.markwon:core:4.6.2'

View File

@@ -81,7 +81,11 @@ fun Throwable.getDisplayMessage(resources: Resources): String = when (this) {
is UnknownHostException, is UnknownHostException,
is SocketTimeoutException -> resources.getString(R.string.network_error) is SocketTimeoutException -> resources.getString(R.string.network_error)
is ImageDecodeException -> resources.getString(R.string.error_corrupted_file) is ImageDecodeException -> resources.getString(
R.string.error_image_format,
format.ifNullOrEmpty { resources.getString(R.string.unknown) },
)
is NoDataReceivedException -> resources.getString(R.string.error_no_data_received) is NoDataReceivedException -> resources.getString(R.string.error_no_data_received)
is IncompatiblePluginException -> resources.getString(R.string.plugin_incompatible) is IncompatiblePluginException -> resources.getString(R.string.plugin_incompatible)
is WrongPasswordException -> resources.getString(R.string.wrong_password) is WrongPasswordException -> resources.getString(R.string.wrong_password)

View File

@@ -737,4 +737,5 @@
<string name="source_code">Source code</string> <string name="source_code">Source code</string>
<string name="user_manual">User manual</string> <string name="user_manual">User manual</string>
<string name="telegram_group">Telegram group</string> <string name="telegram_group">Telegram group</string>
<string name="error_image_format">Unsupported image format: %s</string>
</resources> </resources>

View File

@@ -4,7 +4,7 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:8.6.0' classpath 'com.android.tools.build:gradle:8.7.0'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.20' classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.20'
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.52' classpath 'com.google.dagger:hilt-android-gradle-plugin:2.52'
classpath 'com.google.devtools.ksp:symbol-processing-gradle-plugin:2.0.20-1.0.25' classpath 'com.google.devtools.ksp:symbol-processing-gradle-plugin:2.0.20-1.0.25'