From fd73a0cac16c8ca12259a13a6ca1aa1394a2759b Mon Sep 17 00:00:00 2001 From: Colin White Date: Wed, 23 Oct 2024 23:31:51 -0700 Subject: [PATCH] Add note about enabling coreLibraryDesugaring to support pre-26 Android. --- coil-network-core/README.md | 3 +++ docs/image_pipeline.md | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/coil-network-core/README.md b/coil-network-core/README.md index 2cd151b184..5c612bf93c 100644 --- a/coil-network-core/README.md +++ b/coil-network-core/README.md @@ -49,3 +49,6 @@ KtorNetworkFetcher( cacheStrategy = CacheControlCacheStrategy(), ) ``` + +!!! Note + You need to enable `coreLibraryDesugaring` to support Android API level 25 or below. Follow the docs [here](https://developer.android.com/studio/write/java8-support#library-desugaring) to enable it. diff --git a/docs/image_pipeline.md b/docs/image_pipeline.md index 9437c17543..868c7d6187 100644 --- a/docs/image_pipeline.md +++ b/docs/image_pipeline.md @@ -87,7 +87,7 @@ See [Keyers](/coil/api/coil-core/coil3.key/-keyer) for more information. ## Fetchers -Fetchers translate data (e.g. URL, URI, File, etc.) into either an `ImageSource` or a `Drawable`. They typically convert the input data into a format that can then be consumed by a `Decoder`. Use this interface to add support for custom fetching mechanisms (e.g. Cronet, custom URI schemes, etc.) +Fetchers translate data (e.g. URL, URI, File, etc.) into either an `ImageSource` or an `Image`. They typically convert the input data into a format that can then be consumed by a `Decoder`. Use this interface to add support for custom fetching mechanisms (e.g. Cronet, custom URI schemes, etc.) See [Fetcher](/coil/api/coil-core/coil3.fetch/-fetcher) for more information. @@ -96,6 +96,6 @@ See [Fetcher](/coil/api/coil-core/coil3.fetch/-fetcher) for more information. ## Decoders -Decoders read an `ImageSource` and return a `Drawable`. Use this interface to add support for custom file formats (e.g. GIF, SVG, TIFF, etc.). +Decoders read an `ImageSource` and return an `Image`. Use this interface to add support for custom file formats (e.g. GIF, SVG, TIFF, etc.). See [Decoder](/coil/api/coil-core/coil3.decode/-decoder) for more information.