0.10.0
Changes
⚠️ Breaking: Rename of BindGenericAs
entries ⚠️
BindGenericAs.Type
has been renamed to BindGenericAs.ExactType
and BindGenericAs.TypeAndWildcard
has been renamed to BindGenericAs.ExactTypeAndWildcard
.
These names are much clearer as Type
wasn't really indicative of what it did.
BindGenericAs.Default
There is now a new annotation called @BindGenericAs.Default
which can be placed on the target type to set the default value for BindGenericAs
.
As a quick example:
@BindGenericAs.Default(BindGenericAs.Wildcard)
interface Resource<T>
// This will be bound as Resource<*> since the default has been set to wildcard for Resource.
@AutoBindIntoSet
class SomeResource @Inject constructor() : Resource<Something>
See the documentation for more information.
Details
- Remove the deprecated typealiases by @ansman in #85
- Bump androidx.lifecycle:lifecycle-viewmodel from 2.6.1 to 2.6.2 by @dependabot in #87
- Add a way to change the default
BindGenericAs
. by @ansman in #90
Full Changelog: 0.9.1...0.10.0