Skip to content

Commit

Permalink
Prepare version 3.0.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed Nov 25, 2024
1 parent a1d3b80 commit 9fbf66f
Show file tree
Hide file tree
Showing 18 changed files with 71 additions and 51 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [3.0.4] - November 25, 2024

- Fix vector drawables not rendering in the Android Studio preview.
- Fix potential memory cache miss for requests whose size exceeds `maxBitmapSize`.
- Fix `FakeImage` not rendering on Android.
- Fix not launching a new image request when the request's `Transformation`s change when used with `AsyncImage`/`rememberAsyncImagePainter`/`SubcomposeAsyncImage`.
- Fix `ScaleDrawable` and `CrossfadeDrawable` not respecting tint states.
- Allow `ImageDecoder` to decode partial image sources. This matches the behavior in `BitmapFactory`.
- Fix `Bitmap.prepareToDraw()` not being called after decoding.
- `SvgDecoder` should not return `isSampled = true` for non-rasterized images.
- Fall back to `Dispatchers.Unconfined` in Compose if an immediate main dispatcher is unavailable. This is only used in preview/test environments.
- Update Ktor 2 to `2.3.13`.

## [3.0.3] - November 14, 2024

- Fix setting `ImageRequest.scale` based on an `ImageView`'s `ScaleType`.
Expand Down
4 changes: 2 additions & 2 deletions README-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Coil は、**Co**routine **I**mage **L**oader の頭字語です。
Compose ライブラリと [ネットワーク ライブラリ](https://coil-kt.github.io/coil/network/) をインポートします:

```kotlin
implementation("io.coil-kt.coil3:coil-compose:3.0.3")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3")
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
```

画像を読み込むには、`AsyncImage` を使用しますcomposable:
Expand Down
4 changes: 2 additions & 2 deletions README-ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
Compose 라이브러리와 [네트워킹 라이브러리](https://coil-kt.github.io/coil/network/)를 불러오세요. :

```kotlin
implementation("io.coil-kt.coil3:coil-compose:3.0.3")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3")
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
```

이미지를 로드하려면 `AsyncImage` Composable을 사용하세요. :
Expand Down
4 changes: 2 additions & 2 deletions README-ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Coil — это аббревиатура от: **Co**routine **I**mage **L**load
Импортируйте библиотеку Compose и [сетевую библиотеку](https://coil-kt.github.io/coil/network/):

```kotlin
implementation("io.coil-kt.coil3:coil-compose:3.0.3")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3")
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
```

Чтобы загрузите изображение, используйте `AsyncImage` composable:
Expand Down
4 changes: 2 additions & 2 deletions README-sv.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Spole är en akronym för: **Co**rutin **I**bild **L**loader.
Importera Compose-biblioteket och ett [nätverksbibliotek](https://coil-kt.github.io/coil/network/):

```kotlin
implementering("io.coil-kt.coil3:coil-compose:3.0.3")
implementering("io.coil-kt.coil3:coil-network-okhttp:3.0.3")
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
```

För att ladda en bild, använd "AsyncImage" komponerbar:
Expand Down
4 changes: 2 additions & 2 deletions README-tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Coil, **Co**routine **I**mage **L**oader'ın kısaltmasıdır.
Compose kütüphanesini ve bir [ağ kütüphanesini](https://coil-kt.github.io/coil/network/) içe aktarın:

```kotlin
implementation("io.coil-kt.coil3:coil-compose:3.0.3")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3")
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
```

Bir görüntüyü yüklemek için, `AsyncImage` bileşenini kullanın:
Expand Down
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Coil 是 Co**routine **I**mage **L**oader 的缩写。
导入 Compose 库和 [网络库](https://coil-kt.github.io/coil/network/)

```kotlin
implementation("io.coil-kt.coil3:coil-compose:3.0.3")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3")
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
```

要加载图像,请使用 `AsyncImage`可组合:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Translations: [日本語](README-ja.md), [한국어](README-ko.md), [Русск
Import the Compose library and a [networking library](https://coil-kt.github.io/coil/network/):

```kotlin
implementation("io.coil-kt.coil3:coil-compose:3.0.3")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3")
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
```

To load an image, use the `AsyncImage` composable:
Expand Down
46 changes: 24 additions & 22 deletions coil-compose-core/src/androidMain/baseline-prof.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ HSPLcoil3/compose/AsyncImagePainter;->getAlpha()F
HSPLcoil3/compose/AsyncImagePainter;->getColorFilter()Landroidx/compose/ui/graphics/ColorFilter;
HSPLcoil3/compose/AsyncImagePainter;->getIntrinsicSize-NH-jbRc()J
HSPLcoil3/compose/AsyncImagePainter;->getPainter()Landroidx/compose/ui/graphics/painter/Painter;
HSPLcoil3/compose/AsyncImagePainter;->getPreviewHandler$coil_compose_core_release()Lcoil3/compose/AsyncImagePreviewHandler;
HSPLcoil3/compose/AsyncImagePainter;->getScope$coil_compose_core_release()Lkotlinx/coroutines/CoroutineScope;
HSPLcoil3/compose/AsyncImagePainter;->get_input$coil_compose_core_release()Lkotlinx/coroutines/flow/MutableStateFlow;
HSPLcoil3/compose/AsyncImagePainter;->onDraw(Landroidx/compose/ui/graphics/drawscope/DrawScope;)V
Expand Down Expand Up @@ -78,27 +79,27 @@ HSPLcoil3/compose/AsyncImagePainter$State$Success;-><clinit>()V
HSPLcoil3/compose/AsyncImagePainter$State$Success;-><init>(Landroidx/compose/ui/graphics/painter/Painter;Lcoil3/request/SuccessResult;)V
HSPLcoil3/compose/AsyncImagePainter$State$Success;->getPainter()Landroidx/compose/ui/graphics/painter/Painter;
HSPLcoil3/compose/AsyncImagePainter$State$Success;->getResult()Lcoil3/request/SuccessResult;
Lcoil3/compose/AsyncImagePainter$onRemembered$1$2;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2;-><init>(Lcoil3/compose/AsyncImagePainter;Lkotlin/coroutines/Continuation;)V
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2;->access$invokeSuspend$updateState(Lcoil3/compose/AsyncImagePainter;Lcoil3/compose/AsyncImagePainter$State;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2;->invokeSuspend$updateState(Lcoil3/compose/AsyncImagePainter;Lcoil3/compose/AsyncImagePainter$State;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
Lcoil3/compose/AsyncImagePainter$onRemembered$1$2$2;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$2;-><init>(Lcoil3/compose/AsyncImagePainter;Lkotlin/coroutines/Continuation;)V
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$2;->invoke(Lcoil3/compose/AsyncImagePainter$Input;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
Lcoil3/compose/AsyncImagePainter$onRemembered$1$2$3;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$3;-><init>(Lcoil3/compose/AsyncImagePainter;)V
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$3;->emit(Lcoil3/compose/AsyncImagePainter$State;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$3;->emit(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
Lcoil3/compose/AsyncImagePainter$onRemembered$1$2$invokeSuspend$$inlined$flatMapLatest$1;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$invokeSuspend$$inlined$flatMapLatest$1;-><init>(Lkotlin/coroutines/Continuation;Lcoil3/compose/AsyncImagePainter;)V
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$invokeSuspend$$inlined$flatMapLatest$1;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$invokeSuspend$$inlined$flatMapLatest$1;->invoke(Lkotlinx/coroutines/flow/FlowCollector;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$2$invokeSuspend$$inlined$flatMapLatest$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
Lcoil3/compose/AsyncImagePainter$onRemembered$1$1;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1;-><init>(Lcoil3/compose/AsyncImagePainter;Lkotlin/coroutines/Continuation;)V
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1;->access$invokeSuspend$updateState(Lcoil3/compose/AsyncImagePainter;Lcoil3/compose/AsyncImagePainter$State;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1;->invokeSuspend$updateState(Lcoil3/compose/AsyncImagePainter;Lcoil3/compose/AsyncImagePainter$State;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
Lcoil3/compose/AsyncImagePainter$onRemembered$1$1$2;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$2;-><init>(Lcoil3/compose/AsyncImagePainter;Lkotlin/coroutines/Continuation;)V
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$2;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$2;->invoke(Lcoil3/compose/AsyncImagePainter$Input;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$2;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
Lcoil3/compose/AsyncImagePainter$onRemembered$1$1$3;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$3;-><init>(Lcoil3/compose/AsyncImagePainter;)V
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$3;->emit(Lcoil3/compose/AsyncImagePainter$State;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$3;->emit(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
Lcoil3/compose/AsyncImagePainter$onRemembered$1$1$invokeSuspend$$inlined$flatMapLatest$1;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$invokeSuspend$$inlined$flatMapLatest$1;-><init>(Lkotlin/coroutines/Continuation;Lcoil3/compose/AsyncImagePainter;)V
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$invokeSuspend$$inlined$flatMapLatest$1;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$invokeSuspend$$inlined$flatMapLatest$1;->invoke(Lkotlinx/coroutines/flow/FlowCollector;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
HSPLcoil3/compose/AsyncImagePainter$onRemembered$1$1$invokeSuspend$$inlined$flatMapLatest$1;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
Lcoil3/compose/AsyncImagePainter$updateRequest$$inlined$target$default$1;
HSPLcoil3/compose/AsyncImagePainter$updateRequest$$inlined$target$default$1;-><init>(Lcoil3/request/ImageRequest;Lcoil3/compose/AsyncImagePainter;)V
HSPLcoil3/compose/AsyncImagePainter$updateRequest$$inlined$target$default$1;->onStart(Lcoil3/Image;)V
Expand Down Expand Up @@ -207,11 +208,12 @@ HSPLcoil3/compose/internal/UtilsKt;->$r8$lambda$prVs3UqyA7j9isF0ZE9zr6jrCrs(Lkot
HSPLcoil3/compose/internal/UtilsKt;-><clinit>()V
HSPLcoil3/compose/internal/UtilsKt;->AsyncImageState(Ljava/lang/Object;Lcoil3/ImageLoader;Landroidx/compose/runtime/Composer;I)Lcoil3/compose/internal/AsyncImageState;
HSPLcoil3/compose/internal/UtilsKt;->contentDescription(Landroidx/compose/ui/Modifier;Ljava/lang/String;)Landroidx/compose/ui/Modifier;
HSPLcoil3/compose/internal/UtilsKt;->getSafeImmediateMainDispatcher()Lkotlin/coroutines/CoroutineContext;
HSPLcoil3/compose/internal/UtilsKt;->onStateOf$lambda$4(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lcoil3/compose/AsyncImagePainter$State;)Lkotlin/Unit;
HSPLcoil3/compose/internal/UtilsKt;->onStateOf(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)Lkotlin/jvm/functions/Function1;
HSPLcoil3/compose/internal/UtilsKt;->rememberImmediateCoroutineScope(Landroidx/compose/runtime/Composer;I)Lkotlinx/coroutines/CoroutineScope;
HSPLcoil3/compose/internal/UtilsKt;->requestOf(Ljava/lang/Object;Landroidx/compose/runtime/Composer;I)Lcoil3/request/ImageRequest;
HSPLcoil3/compose/internal/UtilsKt;->requestOfWithSizeResolver(Ljava/lang/Object;Landroidx/compose/ui/layout/ContentScale;Landroidx/compose/runtime/Composer;I)Lcoil3/request/ImageRequest;
HSPLcoil3/compose/internal/UtilsKt;->resolveImmediateDispatcher(Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/CoroutineDispatcher;
HSPLcoil3/compose/internal/UtilsKt;->toDimension(I)Lcoil3/size/Dimension;
HSPLcoil3/compose/internal/UtilsKt;->toIntSize-uvyYCjk(J)J
HSPLcoil3/compose/internal/UtilsKt;->toScale(Landroidx/compose/ui/layout/ContentScale;)Lcoil3/size/Scale;
Expand Down
2 changes: 1 addition & 1 deletion coil-compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
To add support for [Compose UI](https://www.jetbrains.com/compose-multiplatform/), import the extension library:

```kotlin
implementation("io.coil-kt.coil3:coil-compose:3.0.3")
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
```

Then use the `AsyncImage` composable to load and display an image:
Expand Down
9 changes: 7 additions & 2 deletions coil-core/src/androidMain/baseline-prof.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ HSPLcoil3/decode/StaticImageDecoder;->access$configureImageDecoderProperties(Lco
HSPLcoil3/decode/StaticImageDecoder;->access$getOptions$p(Lcoil3/decode/StaticImageDecoder;)Lcoil3/request/Options;
HSPLcoil3/decode/StaticImageDecoder;->configureImageDecoderProperties(Landroid/graphics/ImageDecoder;)V
HSPLcoil3/decode/StaticImageDecoder;->decode(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
Lcoil3/decode/StaticImageDecoder$$ExternalSyntheticLambda7;
HSPLcoil3/decode/StaticImageDecoder$$ExternalSyntheticLambda7;-><init>()V
Lcoil3/decode/StaticImageDecoder$Factory;
HSPLcoil3/decode/StaticImageDecoder$Factory;-><init>(Lkotlinx/coroutines/sync/Semaphore;)V
HSPLcoil3/decode/StaticImageDecoder$Factory;->create(Lcoil3/fetch/SourceFetchResult;Lcoil3/request/Options;Lcoil3/ImageLoader;)Lcoil3/decode/Decoder;
Expand Down Expand Up @@ -508,7 +510,7 @@ Lcoil3/memory/MemoryCacheService$Companion;
HSPLcoil3/memory/MemoryCacheService$Companion;-><init>()V
HSPLcoil3/memory/MemoryCacheService$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
Lcoil3/memory/MemoryCacheServiceKt;
HSPLcoil3/memory/MemoryCacheServiceKt;->createComplexMemoryCacheKeyExtras(Lcoil3/request/ImageRequest;Lcoil3/request/Options;)Ljava/util/Map;
HSPLcoil3/memory/MemoryCacheServiceKt;->needsSizeInCacheKey(Lcoil3/request/ImageRequest;)Z
Lcoil3/memory/RealMemoryCache;
HSPLcoil3/memory/RealMemoryCache;-><init>(Lcoil3/memory/StrongMemoryCache;Lcoil3/memory/WeakMemoryCache;)V
HSPLcoil3/memory/RealMemoryCache;->get(Lcoil3/memory/MemoryCache$Key;)Lcoil3/memory/MemoryCache$Value;
Expand Down Expand Up @@ -716,6 +718,7 @@ HSPLcoil3/size/ScaleDrawable$$ExternalSyntheticApiModelOutline0;->m(Landroid/gra
HSPLcoil3/size/ScaleDrawable$$ExternalSyntheticApiModelOutline0;->m(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/Bitmap;
HSPLcoil3/size/ScaleDrawable$$ExternalSyntheticApiModelOutline0;->m(Landroid/graphics/ImageDecoder;I)V
HSPLcoil3/size/ScaleDrawable$$ExternalSyntheticApiModelOutline0;->m(Landroid/graphics/ImageDecoder;II)V
HSPLcoil3/size/ScaleDrawable$$ExternalSyntheticApiModelOutline0;->m(Landroid/graphics/ImageDecoder;Landroid/graphics/ImageDecoder$OnPartialImageListener;)V
HSPLcoil3/size/ScaleDrawable$$ExternalSyntheticApiModelOutline0;->m(Landroid/graphics/ImageDecoder;Z)V
HSPLcoil3/size/ScaleDrawable$$ExternalSyntheticApiModelOutline0;->m(Landroid/net/ConnectivityManager;)Landroid/net/Network;
HSPLcoil3/size/ScaleDrawable$$ExternalSyntheticApiModelOutline0;->m(Ljava/io/File;)Landroid/graphics/ImageDecoder$Source;
Expand All @@ -740,6 +743,7 @@ HSPLcoil3/size/SizeResolver$Companion;-><clinit>()V
HSPLcoil3/size/SizeResolver$Companion;-><init>()V
Lcoil3/size/SizeResolverKt;
HSPLcoil3/size/SizeResolverKt;->SizeResolver(Lcoil3/size/Size;)Lcoil3/size/SizeResolver;
Lcoil3/size/ViewSizeResolver;
Lcoil3/target/Target;
Lcoil3/target/ViewTarget;
Lcoil3/transition/CrossfadeTransition;
Expand Down Expand Up @@ -847,4 +851,5 @@ HSPLcoil3/util/UtilsKt$EMPTY_IMAGE_FACTORY$1;->invoke(Ljava/lang/Object;)Ljava/l
Lcoil3/util/Utils_androidKt;
HSPLcoil3/util/Utils_androidKt;-><clinit>()V
HSPLcoil3/util/Utils_androidKt;->getDEFAULT_BITMAP_CONFIG()Landroid/graphics/Bitmap$Config;
HSPLcoil3/util/Utils_androidKt;->getNULL_COLOR_SPACE()Landroid/graphics/ColorSpace;
HSPLcoil3/util/Utils_androidKt;->getNULL_COLOR_SPACE()Landroid/graphics/ColorSpace;
HSPLcoil3/util/Utils_androidKt;->prepareToDraw(Lcoil3/Image;)V
2 changes: 1 addition & 1 deletion coil-gif/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Unlike Glide, GIFs are not supported by default. However, Coil has an extension
To add GIF support, import the extension library:

```kotlin
implementation("io.coil-kt.coil3:coil-gif:3.0.3")
implementation("io.coil-kt.coil3:coil-gif:3.0.4")
```

And that's it! The `ImageLoader` will automatically detect any GIFs using their file headers and decode them correctly.
Expand Down
6 changes: 3 additions & 3 deletions coil-network-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ By default, Coil 3.x does not include support for loading images from the networ
To add support for fetching images from the network import **only one of the following**:

```kotlin
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.3") // Only available on Android/JVM.
implementation("io.coil-kt.coil3:coil-network-ktor2:3.0.3")
implementation("io.coil-kt.coil3:coil-network-ktor3:3.0.3")
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")
```

If you use OkHttp, that's it. Once imported, network URLs like `https://example.com/image.jpg` will automatically be supported. If you use Ktor, you need to add supported engines for each platform (see below).
Expand Down
2 changes: 1 addition & 1 deletion coil-svg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
To add SVG support, import the extension library:

```kotlin
implementation("io.coil-kt.coil3:coil-svg:3.0.3")
implementation("io.coil-kt.coil3:coil-svg:3.0.4")
```

And that's it! The `ImageLoader` will automatically detect and decode any SVGs. Coil detects SVGs by looking for the `<svg ` marker in the first 1 KB of the file, which should cover most cases. If the SVG is not automatically detected, you can set the `Decoder` explicitly for the request:
Expand Down
2 changes: 1 addition & 1 deletion coil-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
To use the testing support classes, import the extension library:

```kotlin
testImplementation("io.coil-kt.coil3:coil-test:3.0.3")
testImplementation("io.coil-kt.coil3:coil-test:3.0.4")
```

`coil-test` includes a `FakeImageLoaderEngine`, which can be added to your `ImageLoader` to intercept all incoming `ImageRequest`s and return a custom `ImageResult`. This is useful for testing as it makes loading images synchronous (from the main thread) and consistent. By using `FakeImageLoaderEngine` the `ImageLoader` will avoid all the memory caching, thread jumping, disk/network I/O fetching, and image decoding that's typically done to load an image. Here's an example:
Expand Down
2 changes: 1 addition & 1 deletion coil-video/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
To add video frame support, import the extension library:

```kotlin
implementation("io.coil-kt.coil3:coil-video:3.0.3")
implementation("io.coil-kt.coil3:coil-video:3.0.4")
```

And add the decoder to your component registry when constructing your `ImageLoader`:
Expand Down
Loading

0 comments on commit 9fbf66f

Please sign in to comment.