1.5.2
New feature "Strict mode"
New library mode to check correct usage of ViewBinding. Enabled by default. To return previous
behaviour call ViewBindingPropertyDelegate.strcitMode = false
Added callback when ViewBinding inside ViewBindingProperty will be destroyed
Callback when a ViewBinding in ViewBindingPropertyDelegate will be destroyed
Instead of overriding Fragment.onDestroyView() use
viewBinding(
...,
onViewDestroyed = { vb: ViewBinding ->
// reset views inside the ViewBinding
}
)
ViewBindingProperty will throw error when it will be created before host ready
ViewBindingPropertyDelegate throws an exception when it will be used before host
(Fragment, Activity, etc.) be ready to create a ViewBinding. As an example, access to
ViewBindingPropertyDelegate in a Fragment before onViewCreated() will be called now throw
an Exception.
Other
- Fix memory leaks
- Fix bugs