Skip to content

Commit

Permalink
Prepare version 3.0.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed Nov 7, 2024
1 parent 39ed658 commit 0e8e668
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 28 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [3.0.1] - November 7, 2024

- Fix crash when calling `Image.toBitmap` with a hardware bitmap-backed `BitmapImage`.
- Fix `AsyncImageModelEqualityDelegate.Default` comparing equality incorrectly for non-`ImageRequest` models.

## [3.0.0] - November 4, 2024

Coil 3.0.0 is the next major release of Coil with full support for [Compose Multiplatform](https://www.jetbrains.com/compose-multiplatform/).
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.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.0")
implementation("io.coil-kt.coil3:coil-compose:3.0.1")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.1")
```

画像を読み込むには、`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
구현("io.coil-kt.coil3:coil-compose:3.0.0")
구현("io.coil-kt.coil3:coil-network-okhttp:3.0.0")
구현("io.coil-kt.coil3:coil-compose:3.0.1")
구현("io.coil-kt.coil3:coil-network-okhttp:3.0.1")
```

이미지를 로드하려면 `AsyncImage`를 사용하세요. 구성 가능:
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.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.0")
implementation("io.coil-kt.coil3:coil-compose:3.0.1")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.1")
```

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

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.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.0")
implementation("io.coil-kt.coil3:coil-compose:3.0.1")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.1")
```

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.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.0")
implementation("io.coil-kt.coil3:coil-compose:3.0.1")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.1")
```

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

To load an image, use the `AsyncImage` composable:
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.0")
implementation("io.coil-kt.coil3:coil-compose:3.0.1")
```

Then use the `AsyncImage` composable to load and display an image:
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.0")
implementation("io.coil-kt.coil3:coil-gif:3.0.1")
```

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

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

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

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

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.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.0")
implementation("io.coil-kt.coil3:coil-compose:3.0.1")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.1")
```

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.0")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.0")
implementation("io.coil-kt.coil3:coil:3.0.1")
implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.1")
```

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 docs/upgrading_to_coil3.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Using Coil 3 in a Compose Multiplatform project? Check out the [`samples`](https

## Maven Coordinates and Package Name

Coil's Maven coordinates were updated from `io.coil-kt` to `io.coil-kt.coil3` and its package name was updated from `coil` to `coil3`. This allows Coil 3 to run side by side with Coil 2 without binary compatibility issues. For example, `io.coil-kt:coil:2.7.0` is now `io.coil-kt.coil3:coil:3.0.0`.
Coil's Maven coordinates were updated from `io.coil-kt` to `io.coil-kt.coil3` and its package name was updated from `coil` to `coil3`. This allows Coil 3 to run side by side with Coil 2 without binary compatibility issues. For example, `io.coil-kt:coil:2.7.0` is now `io.coil-kt.coil3:coil:3.0.1`.

The `coil-base` and `coil-compose-base` artifacts were renamed to `coil-core` and `coil-compose-core` respectively to align with the naming conventions used by Coroutines, Ktor, and AndroidX.

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SONATYPE_HOST=DEFAULT
RELEASE_SIGNING_ENABLED=true

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

POM_DESCRIPTION=An image loading library for Android and Compose Multiplatform.
POM_INCEPTION_YEAR=2019
Expand Down

0 comments on commit 0e8e668

Please sign in to comment.