Skip to content

Commit

Permalink
Add note about enabling coreLibraryDesugaring to support pre-26 Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed Oct 24, 2024
1 parent b1587f3 commit fd73a0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions coil-network-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions docs/image_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

0 comments on commit fd73a0c

Please sign in to comment.