Skip to content

Commit

Permalink
Coil 3.0.0-alpha02.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Jan 10, 2024
1 parent 02f7d06 commit 4226a1d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ package io.github.reactivecircus.kstreamlined.android.di
import android.content.Context
import android.os.Build
import coil3.ImageLoader
import coil3.annotation.ExperimentalCoilApi
import coil3.decode.SvgDecoder
import coil3.fetch.NetworkFetcher
import coil3.request.allowHardware
import coil3.request.crossfade
import dagger.Module
Expand All @@ -23,11 +20,6 @@ object AppModule {
@Singleton
fun imageLoader(@ApplicationContext context: Context): ImageLoader {
return ImageLoader.Builder(context)
.components {
@OptIn(ExperimentalCoilApi::class)
add(NetworkFetcher.Factory())
add(SvgDecoder.Factory())
}
.crossfade(enable = true)
// only enable hardware bitmaps on API 28+. See: https://github.com/coil-kt/coil/issues/159
.allowHardware(enable = Build.VERSION.SDK_INT >= Build.VERSION_CODES.P)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ androidx-media3 = "1.2.0"
androidx-profileinstaller = "1.3.1"
androidx-benchmark = "1.2.2"
androidx-metrics = "1.0.0-alpha04"
coil = "3.0.0-alpha01"
coil = "3.0.0-alpha02"
ktor = "2.3.7"
kermit = "2.0.2"
sqldelight = "2.0.1"
Expand Down

0 comments on commit 4226a1d

Please sign in to comment.