Skip to content

Commit

Permalink
Prepare 3.0.0-alpha10.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed Aug 7, 2024
1 parent a2dd459 commit f81ee95
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 83 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## [3.0.0-alpha10] - August 7, 2024

- **BREAKING**: Replace `ImageLoader.Builder.networkObserverEnabled` with a `ConnectivityChecker` interface for `NetworkFetcher`.
- To disable the network observer, pass `ConnectivityChecker.ONLINE` to the constructor for `KtorNetworkFetcherFactory`/`OkHttpNetworkFetcherFactory`.
- **New**: Support loading [Compose Multiplatform resources](https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html) on all platforms. To load a resource, use `Res.getUri`:

```kotlin
AsyncImage(
model = Res.getUri("drawable/image.jpg"),
contentDescription = null,
)
```

- Add `maxBitmapSize` property to `ImageLoader` and `ImageRequest`.
- This property defaults to 4096x4096 and provides a safe upper bound for the dimensions of an allocated bitmap. This helps accidentally loading very large images with `Size.ORIGINAL` and causing an out of memory exception.
- Convert `ExifOrientationPolicy` to be an interface to support custom policies.
- Fix `Uri` handling of Windows file paths.
- Remove `@ExperimentalCoilApi` from the `Image` APIs.
- Update Kotlin to 2.0.10.

## [3.0.0-alpha09] - July 23, 2024

- **BREAKING**: Rename the `io.coil-kt.coil3:coil-network-ktor` artifact to `io.coil-kt.coil3:coil-network-ktor2` which depends on Ktor 2.x. Additionally, introduce `io.coil-kt.coil3:coil-network-ktor3` which depends on Ktor 3.x. `wasmJs` support is only available in Ktor 3.x.
Expand Down
26 changes: 13 additions & 13 deletions coil-compose-core/src/androidMain/baseline-prof.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ HPLcoil3/compose/AsyncImageKt$$ExternalSyntheticLambda0;-><init>(Landroidx/compo
Lcoil3/compose/AsyncImageKt$Content$$inlined$Layout$1;
HSPLcoil3/compose/AsyncImageKt$Content$$inlined$Layout$1;-><init>(Lkotlin/jvm/functions/Function0;)V
HSPLcoil3/compose/AsyncImageKt$Content$$inlined$Layout$1;->invoke()Ljava/lang/Object;
Lcoil3/compose/AsyncImageKt$Content$2;
HSPLcoil3/compose/AsyncImageKt$Content$2;->$r8$lambda$zDOTFsYyTiAlez4-iqIBvJj2_G8(Landroidx/compose/ui/layout/Placeable$PlacementScope;)Lkotlin/Unit;
HSPLcoil3/compose/AsyncImageKt$Content$2;-><clinit>()V
HSPLcoil3/compose/AsyncImageKt$Content$2;-><init>()V
HPLcoil3/compose/AsyncImageKt$Content$2;->measure-3p2s80s(Landroidx/compose/ui/layout/MeasureScope;Ljava/util/List;J)Landroidx/compose/ui/layout/MeasureResult;
HSPLcoil3/compose/AsyncImageKt$Content$2;->measure_3p2s80s$lambda$0(Landroidx/compose/ui/layout/Placeable$PlacementScope;)Lkotlin/Unit;
Lcoil3/compose/AsyncImageKt$Content$2$$ExternalSyntheticLambda0;
HSPLcoil3/compose/AsyncImageKt$Content$2$$ExternalSyntheticLambda0;-><init>()V
HSPLcoil3/compose/AsyncImageKt$Content$2$$ExternalSyntheticLambda0;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
Lcoil3/compose/AsyncImageKt$Content$2$1;
HSPLcoil3/compose/AsyncImageKt$Content$2$1;->$r8$lambda$8UsB1z3668CP4bNu6OSIMMzmxqU(Landroidx/compose/ui/layout/Placeable$PlacementScope;)Lkotlin/Unit;
HSPLcoil3/compose/AsyncImageKt$Content$2$1;-><clinit>()V
HSPLcoil3/compose/AsyncImageKt$Content$2$1;-><init>()V
HPLcoil3/compose/AsyncImageKt$Content$2$1;->measure-3p2s80s(Landroidx/compose/ui/layout/MeasureScope;Ljava/util/List;J)Landroidx/compose/ui/layout/MeasureResult;
HSPLcoil3/compose/AsyncImageKt$Content$2$1;->measure_3p2s80s$lambda$0(Landroidx/compose/ui/layout/Placeable$PlacementScope;)Lkotlin/Unit;
Lcoil3/compose/AsyncImageKt$Content$2$1$$ExternalSyntheticLambda0;
HSPLcoil3/compose/AsyncImageKt$Content$2$1$$ExternalSyntheticLambda0;-><init>()V
HSPLcoil3/compose/AsyncImageKt$Content$2$1$$ExternalSyntheticLambda0;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
Lcoil3/compose/AsyncImagePainter;
HSPLcoil3/compose/AsyncImagePainter;-><clinit>()V
HPLcoil3/compose/AsyncImagePainter;-><init>(Lcoil3/compose/AsyncImagePainter$Input;)V
Expand All @@ -24,7 +24,7 @@ HSPLcoil3/compose/AsyncImagePainter;->access$updateRequest(Lcoil3/compose/AsyncI
HSPLcoil3/compose/AsyncImagePainter;->access$updateState(Lcoil3/compose/AsyncImagePainter;Lcoil3/compose/AsyncImagePainter$State;)V
HSPLcoil3/compose/AsyncImagePainter;->getAlpha()F
HPLcoil3/compose/AsyncImagePainter;->getColorFilter()Landroidx/compose/ui/graphics/ColorFilter;
HPLcoil3/compose/AsyncImagePainter;->getIntrinsicSize-NH-jbRc()J
HSPLcoil3/compose/AsyncImagePainter;->getIntrinsicSize-NH-jbRc()J
HPLcoil3/compose/AsyncImagePainter;->getPainter()Landroidx/compose/ui/graphics/painter/Painter;
HSPLcoil3/compose/AsyncImagePainter;->getScope$coil_compose_core_release()Lkotlinx/coroutines/CoroutineScope;
HSPLcoil3/compose/AsyncImagePainter;->get_input$coil_compose_core_release()Lkotlinx/coroutines/flow/MutableStateFlow;
Expand All @@ -36,7 +36,7 @@ HSPLcoil3/compose/AsyncImagePainter;->setFilterQuality-vDHp3xo$coil_compose_core
HSPLcoil3/compose/AsyncImagePainter;->setOnState$coil_compose_core_release(Lkotlin/jvm/functions/Function1;)V
HSPLcoil3/compose/AsyncImagePainter;->setPainter(Landroidx/compose/ui/graphics/painter/Painter;)V
HSPLcoil3/compose/AsyncImagePainter;->setPreviewHandler$coil_compose_core_release(Lcoil3/compose/AsyncImagePreviewHandler;)V
HSPLcoil3/compose/AsyncImagePainter;->setRememberJob(Lkotlinx/coroutines/Job;)V
HPLcoil3/compose/AsyncImagePainter;->setRememberJob(Lkotlinx/coroutines/Job;)V
HSPLcoil3/compose/AsyncImagePainter;->setScope$coil_compose_core_release(Lkotlinx/coroutines/CoroutineScope;)V
HSPLcoil3/compose/AsyncImagePainter;->setTransform$coil_compose_core_release(Lkotlin/jvm/functions/Function1;)V
HPLcoil3/compose/AsyncImagePainter;->toState(Lcoil3/request/ImageResult;)Lcoil3/compose/AsyncImagePainter$State;
Expand Down Expand Up @@ -127,7 +127,7 @@ HSPLcoil3/compose/SingletonImageLoadersKt$sam$coil3_SingletonImageLoader_Factory
HSPLcoil3/compose/SingletonImageLoadersKt$sam$coil3_SingletonImageLoader_Factory$0;->newImageLoader(Landroid/content/Context;)Lcoil3/ImageLoader;
Lcoil3/compose/internal/AsyncImageState;
HSPLcoil3/compose/internal/AsyncImageState;-><clinit>()V
HPLcoil3/compose/internal/AsyncImageState;-><init>(Ljava/lang/Object;Lcoil3/compose/EqualityDelegate;Lcoil3/ImageLoader;)V
HSPLcoil3/compose/internal/AsyncImageState;-><init>(Ljava/lang/Object;Lcoil3/compose/EqualityDelegate;Lcoil3/ImageLoader;)V
HSPLcoil3/compose/internal/AsyncImageState;->getImageLoader()Lcoil3/ImageLoader;
HSPLcoil3/compose/internal/AsyncImageState;->getModel()Ljava/lang/Object;
HSPLcoil3/compose/internal/AsyncImageState;->getModelEqualityDelegate()Lcoil3/compose/EqualityDelegate;
Expand Down Expand Up @@ -183,7 +183,7 @@ Lcoil3/compose/internal/CrossfadePainter;
HSPLcoil3/compose/internal/CrossfadePainter;-><clinit>()V
HSPLcoil3/compose/internal/CrossfadePainter;-><init>(Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/layout/ContentScale;IZZ)V
HSPLcoil3/compose/internal/CrossfadePainter;->computeDrawSize-x8L_9b0(JJ)J
HSPLcoil3/compose/internal/CrossfadePainter;->computeIntrinsicSize-NH-jbRc()J
HPLcoil3/compose/internal/CrossfadePainter;->computeIntrinsicSize-NH-jbRc()J
HSPLcoil3/compose/internal/CrossfadePainter;->drawPainter(Landroidx/compose/ui/graphics/drawscope/DrawScope;Landroidx/compose/ui/graphics/painter/Painter;F)V
HSPLcoil3/compose/internal/CrossfadePainter;->getColorFilter()Landroidx/compose/ui/graphics/ColorFilter;
HSPLcoil3/compose/internal/CrossfadePainter;->getIntrinsicSize-NH-jbRc()J
Expand Down
Loading

0 comments on commit f81ee95

Please sign in to comment.