https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
t

Takeshi Hagikura

03/27/2024, 7:37 AM
Are there up-to-date samples for coil 3.x? Looks like how to initialize ImageLoader has been changed at some point in 3.0.0-alpha0x. But couldn't figure out equivalent. For example
NetworkFetcher
isn't available in 3.0.0-alpha06
Copy code
ImageLoader.Builder(context)
        .components {
            add(NetworkFetcher.Factory()) // Has changed at some point?
        }
        ...
c

Colin White

03/27/2024, 5:36 PM
The docs are a bit lacking at the moment as the APIs aren’t final, but your best bet is: https://coil-kt.github.io/coil/upgrading_to_coil3/
For changes in between alphas breaking changes are included in the CHANGELOG.
NetworkFetcher
was renamed in
alpha03
to support
OkHttpNetworkFetcherFactory
and
KtorNetworkFetcherFactory
depending on which networking library you use
t

Takeshi Hagikura

03/28/2024, 1:09 AM
Thanks! I'll check it!
2 Views