All Versions
Latest Version
Avg Release Cycle
23 days
Latest Release
61 days ago

Changelog History
Page 5

  • v0.9.0 Changes

    December 30, 2019
    • ๐Ÿ’ฅ Breaking: Transformation.transform now includes a Size parameter. This is to support transformations that change the size of the output Bitmap based on the size of the Target. Requests with transformations are now also exempt from image sampling.
    • ๐Ÿ’ฅ Breaking: Transformations are now applied to any type of Drawable. Before, Transformations would be skipped if the input Drawable was not a BitmapDrawable. Now, Drawables are rendered to a Bitmap before applying the Transformations.
    • ๐Ÿ’ฅ Breaking: Passing null data to ImageLoader.load is now treated as an error and calls Target.onError and Request.Listener.onError with a NullRequestDataException. This change was made to support setting a fallback drawable if data is null. Previously the request was silently ignored.
    • ๐Ÿ’ฅ Breaking: RequestDisposable.isDisposed is now a val.

    • ๐Ÿ†• New: Support for custom transitions. See here for more info. Transitions are marked as experimental as the API is incubating.
    • ๐Ÿ†• New: Add RequestDisposable.await to support suspending while a LoadRequest is in progress.
    • ๐Ÿ†• New: Support setting a fallback drawable when request data is null.
    • ๐Ÿ†• New: Add Precision. This makes the size of the output Drawable exact while enabling scaling optimizations for targets that support scaling (e.g. ImageViewTarget). See its documentation for more information.
    • ๐Ÿ†• New: Add RequestBuilder.aliasKeys to support matching multiple cache keys.

    • ๐Ÿ›  Fix: Make RequestDisposable thread safe.
    • ๐Ÿ›  Fix: RoundedCornersTransformation now crops to the size of the target then rounds the corners.
    • ๐Ÿ›  Fix: CircleCropTransformation now crops from the center.
    • ๐Ÿ›  Fix: Add several devices to the hardware bitmap blacklist.
    • ๐Ÿ›  Fix: Preserve aspect ratio when converting a Drawable to a Bitmap.
    • ๐Ÿ›  Fix: Fix possible memory cache miss with Scale.FIT.
    • ๐Ÿ›  Fix: Ensure Parameters iteration order is deterministic.
    • ๐Ÿ›  Fix: Defensive copy when creating Parameters and ComponentRegistry.
    • ๐Ÿ›  Fix: Ensure RealBitmapPool's maxSize >= 0.
    • ๐Ÿ›  Fix: Show the start drawable if CrossfadeDrawable is not animating or done.
    • ๐Ÿ›  Fix: Adjust CrossfadeDrawable to account for children with undefined intrinsic size.
    • ๐Ÿ›  Fix: Fix MovieDrawable not scaling properly.

    • โšก๏ธ Update Kotlin to 1.3.61.
    • โšก๏ธ Update Kotlin Coroutines to 1.3.3.
    • โšก๏ธ Update Okio to 2.4.3.
    • โšก๏ธ Update AndroidX dependencies:
      • androidx.exifinterface:exifinterface -> 1.1.0
  • v0.8.0 Changes

    October 22, 2019
    • ๐Ÿ’ฅ Breaking: SvgDrawable has been removed. Instead, SVGs are now prerendered to BitmapDrawables by SvgDecoder. This makes SVGs significantly less expensive to render on the main thread. Also SvgDecoder now requires a Context in its constructor.
    • ๐Ÿ’ฅ Breaking: SparseIntArraySet extension functions have moved to the coil.extension package.

    • ๐Ÿ†• New: Support setting per-request network headers. See here for more info.
    • ๐Ÿ†• New: Add new Parameters API to support passing custom data through the image pipeline.
    • ๐Ÿ†• New: Support individual corner radii in RoundedCornersTransformation. Thanks @khatv911.
    • ๐Ÿ†• New: Add ImageView.clear() to support proactively freeing resources.
    • ๐Ÿ†• New: Support loading resources from other packages.
    • ๐Ÿ†• New: Add subtractPadding attribute to ViewSizeResolver to enable/disable subtracting a view's padding when measuring.
    • ๐Ÿ†• New: Improve HttpUrlFetcher MIME type detection.
    • ๐Ÿ†• New: Add Animatable2Compat support to MovieDrawable and CrossfadeDrawable.
    • ๐Ÿ†• New: Add RequestBuilder<*>.repeatCount to set the repeat count for a GIF.
    • ๐Ÿ†• New: Add BitmapPool creation to the public API.
    • ๐Ÿ†• New: Annotate Request.Listener methods with @MainThread.

    • ๐Ÿ›  Fix: Make CoilContentProvider visible for testing.
    • ๐Ÿ›  Fix: Include night mode in the resource cache key.
    • ๐Ÿ›  Fix: Work around ImageDecoder native crash by temporarily writing the source to disk.
    • ๐Ÿ›  Fix: Correctly handle contact display photo uris.
    • ๐Ÿ›  Fix: Pass tint to CrossfadeDrawable's children.
    • ๐Ÿ›  Fix: Fix several instances of not closing sources.
    • ๐Ÿ›  Fix: Add a blacklist of devices with broken/incomplete hardware bitmap implementations.

    • Compile against SDK 29.
    • โšก๏ธ Update Kotlin Coroutines to 1.3.2.
    • โšก๏ธ Update OkHttp to 3.12.6.
    • โšก๏ธ Update Okio to 2.4.1.
    • ๐Ÿ”„ Change appcompat-resources from compileOnly to implementation for coil-base.
  • v0.7.0 Changes

    September 08, 2019
    • ๐Ÿ’ฅ Breaking: ImageLoaderBuilder.okHttpClient(OkHttpClient.Builder.() -> Unit) is now ImageLoaderBuilder.okHttpClient(() -> OkHttpClient). The initializer is also now called lazily on a background thread. If you set a custom OkHttpClient you must set OkHttpClient.cache to enable disk caching. If you don't set a custom OkHttpClient, Coil will create the default OkHttpClient which has disk caching enabled. The default Coil cache can be created using CoilUtils.createDefaultCache(context). e.g.:
    val imageLoader = ImageLoader(context) {
        okHttpClient {
    • ๐Ÿ’ฅ Breaking: Fetcher.key no longer has a default implementation.
    • ๐Ÿ’ฅ Breaking: Previously, only the first applicable Mapper would be called. Now, all applicable Mappers will be called. No API changes.
    • ๐Ÿ’ฅ Breaking: Minor named parameter renaming: url -> uri, factory -> initializer.

    • ๐Ÿ†• New: coil-svg artifact, which has an SvgDecoder that supports automatically decoding SVGs. Powered by AndroidSVG. Thanks @rharter.
    • ๐Ÿ†• New: load(String) and get(String) now accept any of the supported Uri schemes. e.g. You can now do imageView.load("file:///path/to/file.jpg").
    • ๐Ÿ†• New: Refactor ImageLoader to use Call.Factory instead of OkHttpClient. This allows lazy initialization of the networking resources using ImageLoaderBuilder.okHttpClient { OkHttpClient() }. Thanks @ZacSweers.
    • ๐Ÿ†• New: RequestBuilder.decoder to explicitly set the decoder for a request.
    • ๐Ÿ†• New: ImageLoaderBuilder.allowHardware to enable/disable hardware bitmaps by default for an ImageLoader.
    • ๐Ÿ†• New: Support software rendering in ImageDecoderDecoder.

    • ๐Ÿ›  Fix: Multiple bugs with loading vector drawables.
    • ๐Ÿ›  Fix: Support WRAP_CONTENT View dimensions.
    • ๐Ÿ›  Fix: Support parsing EXIF data longer than 8192 bytes.
    • ๐Ÿ›  Fix: Don't stretch drawables with different aspect ratios when crossfading.
    • ๐Ÿ›  Fix: Guard against network observer failing to register due to exception.
    • ๐Ÿ›  Fix: Fix divide by zero error in MovieDrawable. Thanks @R12rus.
    • ๐Ÿ›  Fix: Support nested Android asset files. Thanks @JaCzekanski.
    • ๐Ÿ›  Fix: Guard against running out of file descriptors on Android O and O_MR1.
    • ๐Ÿ›  Fix: Don't crash when disabling memory cache. Thanks @hansenji.
    • ๐Ÿ›  Fix: Ensure Target.cancel is always called from the main thread.

    • โšก๏ธ Update Kotlin to 1.3.50.
    • โšก๏ธ Update Kotlin Coroutines to 1.3.0.
    • โšก๏ธ Update OkHttp to 3.12.4.
    • โšก๏ธ Update Okio to 2.4.0.
    • โšก๏ธ Update AndroidX dependencies to the latest stable versions:
      • androidx.appcompat:appcompat -> 1.1.0
      • androidx.core:core-ktx -> 1.1.0
      • androidx.lifecycle:lifecycle-common-java8 -> 2.1.0
    • Replace appcompat with appcompat-resources as an optional compileOnly dependency. appcompat-resources is a much smaller artifact.
  • v0.6.1 Changes

    August 16, 2019
    • ๐Ÿ†• New: Add transformations(List<Transformation>) to RequestBuilder.
    • ๐Ÿ›  Fix: Add the last modified date to the cache key for file uris.
    • ๐Ÿ›  Fix: Ensure View dimensions are evaluated to at least 1px.
    • ๐Ÿ›  Fix: Clear MovieDrawable's canvas between frames.
    • ๐Ÿ›  Fix: Open assets correctly.
  • v0.6.0 Changes

    August 12, 2019

    ๐Ÿ‘€ See