Skip to content

Commit

Permalink
Prepare 3.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed Feb 4, 2025
1 parent 4e069cc commit 1853758
Show file tree
Hide file tree
Showing 18 changed files with 131 additions and 125 deletions.
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.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")
```

画像を読み込むには、`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.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")
```

이미지를 로드하려면 `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.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")
```

Чтобы загрузите изображение, используйте `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
implementation("io.coil-kt.coil3:coil-compose:3.0.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")
```

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.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")
```

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.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")
```

要加载图像,请使用 `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.4")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.4")
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.1.0")
```

To load an image, use the `AsyncImage` composable:
Expand Down
183 changes: 92 additions & 91 deletions coil-compose-core/src/androidMain/baseline-prof.txt

Large diffs are not rendered by default.

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.4")
implementation("io.coil-kt.coil3:coil-compose:3.1.0")
```

Then use the `AsyncImage` composable to load and display an image:
Expand Down
15 changes: 10 additions & 5 deletions coil-core/src/androidMain/baseline-prof.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ SPLcoil3/BitmapImage;-><init>(Landroid/graphics/Bitmap;Z)V
SPLcoil3/BitmapImage;->getBitmap()Landroid/graphics/Bitmap;
SPLcoil3/BitmapImage;->getShareable()Z
SPLcoil3/BitmapImage;->getSize()J
Lcoil3/BitmapImage$$ExternalSyntheticBackport0;
SPLcoil3/BitmapImage$$ExternalSyntheticBackport0;->m(Ljava/util/concurrent/atomic/AtomicReference;Ljava/lang/Object;Ljava/lang/Object;)Z
Lcoil3/ColorImage$$ExternalSyntheticBackport0;
SPLcoil3/ColorImage$$ExternalSyntheticBackport0;->m(Ljava/util/concurrent/atomic/AtomicReference;Ljava/lang/Object;Ljava/lang/Object;)Z
Lcoil3/ComponentRegistry;
SPLcoil3/ComponentRegistry;->$r8$lambda$AOMzzwdb7Qz38tc6_CIWPIRh5vs(Lcoil3/ComponentRegistry;)Ljava/util/List;
SPLcoil3/ComponentRegistry;->$r8$lambda$dJAwMCH26B_eSz_vzGP6LqaRwks(Lcoil3/ComponentRegistry;)Ljava/util/List;
Expand All @@ -18,7 +18,6 @@ SPLcoil3/ComponentRegistry;->getFetcherFactories()Ljava/util/List;
SPLcoil3/ComponentRegistry;->getInterceptors()Ljava/util/List;
SPLcoil3/ComponentRegistry;->getKeyers()Ljava/util/List;
SPLcoil3/ComponentRegistry;->getMappers()Ljava/util/List;
SPLcoil3/ComponentRegistry;->key(Ljava/lang/Object;Lcoil3/request/Options;)Ljava/lang/String;
SPLcoil3/ComponentRegistry;->map(Ljava/lang/Object;Lcoil3/request/Options;)Ljava/lang/Object;
SPLcoil3/ComponentRegistry;->newBuilder()Lcoil3/ComponentRegistry$Builder;
SPLcoil3/ComponentRegistry;->newDecoder(Lcoil3/fetch/SourceFetchResult;Lcoil3/request/Options;Lcoil3/ImageLoader;I)Lkotlin/Pair;
Expand Down Expand Up @@ -60,6 +59,7 @@ SPLcoil3/EventListener;->keyEnd(Lcoil3/request/ImageRequest;Ljava/lang/String;)V
SPLcoil3/EventListener;->keyStart(Lcoil3/request/ImageRequest;Ljava/lang/Object;)V
SPLcoil3/EventListener;->mapEnd(Lcoil3/request/ImageRequest;Ljava/lang/Object;)V
SPLcoil3/EventListener;->mapStart(Lcoil3/request/ImageRequest;Ljava/lang/Object;)V
SPLcoil3/EventListener;->onCancel(Lcoil3/request/ImageRequest;)V
SPLcoil3/EventListener;->onStart(Lcoil3/request/ImageRequest;)V
SPLcoil3/EventListener;->onSuccess(Lcoil3/request/ImageRequest;Lcoil3/request/SuccessResult;)V
SPLcoil3/EventListener;->resolveSizeEnd(Lcoil3/request/ImageRequest;Lcoil3/size/Size;)V
Expand Down Expand Up @@ -125,6 +125,7 @@ Lcoil3/ImageLoaders_androidKt;
SPLcoil3/ImageLoaders_androidKt;-><clinit>()V
SPLcoil3/ImageLoaders_androidKt;->getBitmapFactoryExifOrientationStrategy(Lcoil3/RealImageLoader$Options;)Lcoil3/decode/ExifOrientationStrategy;
SPLcoil3/ImageLoaders_androidKt;->getBitmapFactoryMaxParallelism(Lcoil3/RealImageLoader$Options;)I
SPLcoil3/ImageLoaders_androidKt;->getImageDecoderEnabled(Lcoil3/RealImageLoader$Options;)Z
Lcoil3/Image_androidKt;
SPLcoil3/Image_androidKt;->asImage$default(Landroid/graphics/Bitmap;ZILjava/lang/Object;)Lcoil3/BitmapImage;
SPLcoil3/Image_androidKt;->asImage(Landroid/graphics/Bitmap;Z)Lcoil3/BitmapImage;
Expand All @@ -139,6 +140,7 @@ SPLcoil3/RealImageLoader;->getDefaults()Lcoil3/request/ImageRequest$Defaults;
SPLcoil3/RealImageLoader;->getDiskCache()Lcoil3/disk/DiskCache;
SPLcoil3/RealImageLoader;->getMemoryCache()Lcoil3/memory/MemoryCache;
SPLcoil3/RealImageLoader;->getOptions()Lcoil3/RealImageLoader$Options;
SPLcoil3/RealImageLoader;->onCancel(Lcoil3/request/ImageRequest;Lcoil3/EventListener;)V
SPLcoil3/RealImageLoader;->onSuccess(Lcoil3/request/SuccessResult;Lcoil3/target/Target;Lcoil3/EventListener;)V
Lcoil3/RealImageLoader$Options;
SPLcoil3/RealImageLoader$Options;-><init>(Landroid/content/Context;Lcoil3/request/ImageRequest$Defaults;Lkotlin/Lazy;Lkotlin/Lazy;Lcoil3/EventListener$Factory;Lcoil3/ComponentRegistry;Lcoil3/util/Logger;)V
Expand Down Expand Up @@ -282,7 +284,7 @@ Lcoil3/disk/DiskCache$Editor;
Lcoil3/disk/DiskCache$Snapshot;
Lcoil3/disk/DiskLruCache;
SPLcoil3/disk/DiskLruCache;-><clinit>()V
SPLcoil3/disk/DiskLruCache;-><init>(Lokio/FileSystem;Lokio/Path;Lkotlinx/coroutines/CoroutineDispatcher;JII)V
SPLcoil3/disk/DiskLruCache;-><init>(Lokio/FileSystem;Lokio/Path;Lkotlin/coroutines/CoroutineContext;JII)V
SPLcoil3/disk/DiskLruCache;->access$completeEdit(Lcoil3/disk/DiskLruCache;Lcoil3/disk/DiskLruCache$Editor;Z)V
SPLcoil3/disk/DiskLruCache;->access$getDirectory$p(Lcoil3/disk/DiskLruCache;)Lokio/Path;
SPLcoil3/disk/DiskLruCache;->access$getFileSystem$p(Lcoil3/disk/DiskLruCache;)Lcoil3/disk/DiskLruCache$fileSystem$1;
Expand Down Expand Up @@ -341,7 +343,7 @@ SPLcoil3/disk/FaultHidingSink;->flush()V
SPLcoil3/disk/FaultHidingSink;->write(Lokio/Buffer;J)V
Lcoil3/disk/RealDiskCache;
SPLcoil3/disk/RealDiskCache;-><clinit>()V
SPLcoil3/disk/RealDiskCache;-><init>(JLokio/Path;Lokio/FileSystem;Lkotlinx/coroutines/CoroutineDispatcher;)V
SPLcoil3/disk/RealDiskCache;-><init>(JLokio/Path;Lokio/FileSystem;Lkotlin/coroutines/CoroutineContext;)V
SPLcoil3/disk/RealDiskCache;->getDirectory()Lokio/Path;
SPLcoil3/disk/RealDiskCache;->getFileSystem()Lokio/FileSystem;
SPLcoil3/disk/RealDiskCache;->getMaxSize()J
Expand Down Expand Up @@ -557,6 +559,7 @@ Lcoil3/request/ErrorResult;
Lcoil3/request/ImageRequest;
HSPLcoil3/request/ImageRequest;-><init>(Landroid/content/Context;Ljava/lang/Object;Lcoil3/target/Target;Lcoil3/request/ImageRequest$Listener;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lokio/FileSystem;Lkotlin/Pair;Lcoil3/decode/Decoder$Factory;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/memory/MemoryCache$Key;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lcoil3/size/SizeResolver;Lcoil3/size/Scale;Lcoil3/size/Precision;Lcoil3/Extras;Lcoil3/request/ImageRequest$Defined;Lcoil3/request/ImageRequest$Defaults;)V
SPLcoil3/request/ImageRequest;-><init>(Landroid/content/Context;Ljava/lang/Object;Lcoil3/target/Target;Lcoil3/request/ImageRequest$Listener;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lokio/FileSystem;Lkotlin/Pair;Lcoil3/decode/Decoder$Factory;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/request/CachePolicy;Lcoil3/memory/MemoryCache$Key;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lcoil3/size/SizeResolver;Lcoil3/size/Scale;Lcoil3/size/Precision;Lcoil3/Extras;Lcoil3/request/ImageRequest$Defined;Lcoil3/request/ImageRequest$Defaults;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
SPLcoil3/request/ImageRequest;->equals(Ljava/lang/Object;)Z
SPLcoil3/request/ImageRequest;->getContext()Landroid/content/Context;
SPLcoil3/request/ImageRequest;->getData()Ljava/lang/Object;
SPLcoil3/request/ImageRequest;->getDecoderCoroutineContext()Lkotlin/coroutines/CoroutineContext;
Expand Down Expand Up @@ -832,11 +835,13 @@ Lcoil3/util/UtilsKt;
SPLcoil3/util/UtilsKt;-><clinit>()V
SPLcoil3/util/UtilsKt;->closeQuietly(Ljava/io/Closeable;)V
SPLcoil3/util/UtilsKt;->closeQuietly(Ljava/lang/AutoCloseable;)V
SPLcoil3/util/UtilsKt;->getDispatcher(Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/CoroutineDispatcher;
SPLcoil3/util/UtilsKt;->getEMPTY_IMAGE_FACTORY()Lkotlin/jvm/functions/Function1;
SPLcoil3/util/UtilsKt;->getEventListener(Lcoil3/intercept/Interceptor$Chain;)Lcoil3/EventListener;
SPLcoil3/util/UtilsKt;->isFileUri(Lcoil3/Uri;)Z
SPLcoil3/util/UtilsKt;->isMinOrMax(I)Z
SPLcoil3/util/UtilsKt;->isPlaceholderCached(Lcoil3/intercept/Interceptor$Chain;)Z
SPLcoil3/util/UtilsKt;->key(Lcoil3/ComponentRegistry;Ljava/lang/Object;Lcoil3/request/Options;Lcoil3/util/Logger;Ljava/lang/String;)Ljava/lang/String;
Lcoil3/util/UtilsKt$EMPTY_IMAGE_FACTORY$1;
SPLcoil3/util/UtilsKt$EMPTY_IMAGE_FACTORY$1;-><clinit>()V
SPLcoil3/util/UtilsKt$EMPTY_IMAGE_FACTORY$1;-><init>()V
Expand Down
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.4")
implementation("io.coil-kt.coil3:coil-gif:3.1.0")
```

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

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.4")
implementation("io.coil-kt.coil3:coil-svg:3.1.0")
```

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.4")
testImplementation("io.coil-kt.coil3:coil-test:3.1.0")
```

`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.4")
implementation("io.coil-kt.coil3:coil-video:3.1.0")
```

And add the decoder to your component registry when constructing your `ImageLoader`:
Expand Down
8 changes: 4 additions & 4 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
A typical Compose UI project will want to import:

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

After that's imported you can load images from the network using `AsyncImage`:
Expand All @@ -26,8 +26,8 @@ AsyncImage(
If you use Android Views instead of Compose UI import:

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

After that's imported you can load images from the network using the `ImageView.load` extension function:
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SONATYPE_HOST=DEFAULT
RELEASE_SIGNING_ENABLED=true

POM_GROUP_ID=io.coil-kt.coil3
POM_VERSION=3.1.0-SNAPSHOT
POM_VERSION=3.1.0

POM_DESCRIPTION=An image loading library for Android and Compose Multiplatform.
POM_INCEPTION_YEAR=2019
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ androidx-lifecycle = "2.8.7"
androidx-tracing-perfetto = "1.0.0"
atomicfu = "0.26.1"
coroutines = "1.10.1"
jetbrains-compose = "1.8.0-alpha02"
jetbrains-compose = "1.7.3"
kotlin = "2.1.10"
ktlint = "1.4.1"
ktor2 = "2.3.13"
Expand All @@ -14,7 +14,7 @@ okhttp = "4.12.0"
okio = "3.10.2"
paparazzi = "1.3.5"
roborazzi = "1.40.1"
skiko = "0.8.19"
skiko = "0.8.18"

[plugins]
baselineProfile = { id = "androidx.baselineprofile", version.ref = "androidx-benchmark" }
Expand Down

0 comments on commit 1853758

Please sign in to comment.