Releases: Backbase/DeferredResources
0.5.0
Breaking change: Update DeferredDrawable.Resource's transformations
constructor parameter to
receive the resolving Context as a parameter. This breaks binary compatibility by removing
constructors with a Function1 parameter in their signature (replaced by a Function2 parameter). This
also breaks source compatibility for Java consumers but not for Kotlin consumers.
Add deferred-resources-view-extensions
to simplify use of Deferred Resources with Views. Basic
extensions are provided for View, TextView, and ImageView.
Add DeferredColorWithAlpha
along with a corresponding withAlpha
extension on DeferredColor
, to
make alpha transformations on unresolved DeferredColor
s simple.
0.4.0
Add DeferredDimension.Attribute
to support dimension attribute resolution. Add DeferredText.resolveToString
as a convenience for converting the resolve CharSequence to a string.
Update minimum supported Java version to Java 8.
0.3.1
Add the @Px
annotation to the integer pixel value parameter of DeferredDimension.Constant
's convenience constructor.
0.3.0
Add a text
package with various text helpers allowing conversion formatted and/or pluralized text and regular deferred text when partial resolution information is known (i.e. format arguments and/or quantity).
Add DeferredColorDrawable
as a convenience for deferred creation of a solid-color Drawable.
Add a convenience constructor for parsing a color string to create a DeferredColor.Constant
.
0.2.0
Add DeferredTypeface
, DeferredIntegerArray
, and DeferredTextArray
.
0.1.0
Initial preview release. Declare booleans, colors, dimensions, drawables, integers, plurals, and text from resources or code without a Context, relying on the consumer to resolve them.