Coil v0.9.0 Release Notes
Release Date: 2019-12-30 // over 4 years ago-
- ๐ฅ Breaking:
Transformation.transform
now includes aSize
parameter. This is to support transformations that change the size of the outputBitmap
based on the size of theTarget
. Requests with transformations are now also exempt from image sampling. - ๐ฅ Breaking:
Transformation
s are now applied to any type ofDrawable
. Before,Transformation
s would be skipped if the inputDrawable
was not aBitmapDrawable
. Now,Drawable
s are rendered to aBitmap
before applying theTransformation
s. - ๐ฅ Breaking: Passing
null
data toImageLoader.load
is now treated as an error and callsTarget.onError
andRequest.Listener.onError
with aNullRequestDataException
. This change was made to support setting afallback
drawable if data isnull
. Previously the request was silently ignored. - ๐ฅ Breaking:
RequestDisposable.isDisposed
is now aval
.
- ๐ 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 aLoadRequest
is in progress. - ๐ New: Support setting a
fallback
drawable when request data is null. - ๐ New: Add
Precision
. This makes the size of the outputDrawable
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
- ๐ฅ Breaking: