Skip to content

Commit

Permalink
Add support for SVG favicons
Browse files Browse the repository at this point in the history
  • Loading branch information
jocmp committed Jan 21, 2025
1 parent ca96075 commit a029876
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ dependencies {
implementation(libs.androidx.work.runtime.ktx)
implementation(libs.coil.compose)
implementation(libs.coil.gif)
implementation(libs.coil.svg)
implementation(libs.lazycolumnscrollbar)
implementation(libs.koin.android)
implementation(libs.koin.androidx.compose)
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/capyreader/app/MainApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.app.Application
import coil.ImageLoader
import coil.ImageLoaderFactory
import coil.decode.ImageDecoderDecoder
import coil.decode.SvgDecoder
import com.capyreader.app.common.AppPreferences
import com.google.android.material.color.DynamicColors
import com.jocmp.capy.UserAgentInterceptor
Expand Down Expand Up @@ -33,6 +34,7 @@ class MainApplication : Application(), ImageLoaderFactory {
return ImageLoader.Builder(this)
.components {
add(ImageDecoderDecoder.Factory())
add(SvgDecoder.Factory())
}
.okHttpClient {
OkHttpClient.Builder()
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ androidx-webkit = { module = "androidx.webkit:webkit", version = "1.12.1" }
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version = "2.10.0" }
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
coil-gif = { module = "io.coil-kt:coil-gif", version.ref = "coil" }
coil-svg = { module = "io.coil-kt:coil-svg", version.ref = "coil" }
converter-scalars = { module = "com.squareup.retrofit2:converter-scalars", version.ref = "retrofit" }
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics", version = "19.3.0" }
jsoup = { module = "org.jsoup:jsoup", version = "1.17.1" }
Expand Down

0 comments on commit a029876

Please sign in to comment.