You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opening this preemptively to catch incoming issue when upgrading from Coil 2.0 to 3.0. You need to add one of Coil 3.0's new network dependencies:
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4") // Only available on Android/JVM.
implementation("io.coil-kt.coil3:coil-network-ktor2:3.0.4")
implementation("io.coil-kt.coil3:coil-network-ktor3:3.0.4")
This change was made for two reasons:
Coil now supports multiple networking libraries. You can use OkHttp on JVM/Android and Ktor if you need multiplatform support.
Coil no longer has a hard dependency on OkHttp so you don't have to import it if you only load images from local sources (file system, content providers, resources, etc.).
You can set a custom OkHttpClient/HttpClient like so:
Opening this preemptively to catch incoming issue when upgrading from Coil 2.0 to 3.0. You need to add one of Coil 3.0's new network dependencies:
This change was made for two reasons:
You can set a custom
OkHttpClient
/HttpClient
like so:The text was updated successfully, but these errors were encountered: