February 5, 2023
- Fix bugs
- All artifacts now will distributed as JAR instead of AAR
- Update Jetpack Dependencies
- Update Kotlin to 1.8.10
- Update AGP to 7.4.1
viewbindingpropertydelegate-core - base API for ViewBindingPropertyDelegate viewbindingpropertydelegate-noreflection - API to work with ViewBindingPropertyDelegate without reflection calls viewbindingpropertydelegate -> viewbindingpropertydelegate-full - All possible ways to create ViewBindingPropertyDelegate
December 23, 2021
- Bug fixes
- Improve error messages
November 19, 2021
- Fix clearing of a Fragment when it is destroyed
November 13, 2021
New library mode to check correctness of ViewBinding usage. Enabled by default. Call ViewBindingPropertyDelegate.strictMode = false to switch to old behavior
Callback is triggered when a ViewBinding in ViewBindingPropertyDelegate is destroyed Instead of overriding Fragment.onDestroyView(), use
viewBinding(
...,
onViewDestroyed = { vb: ViewBinding ->
// reset views inside the ViewBinding
}
)
ViewBindingPropertyDelegate throws an exception if it is used before the host (Fragment, Activity, etc.) is ready to create a ViewBinding. As an example, accessing ViewBindingPropertyDelegate in a Fragment, before onViewCreated() has been called, will now throw an Exception.
- Fix memory leaks
- Fix bugs
- Bugs fixing
- Bugs fixing
- Update built-in ProGuard rules
- Improve checking of a
Fragment
'sViewLifecycleOwner
- Update ProGuard rules
- Migrate to Maven Central. This is the last release available via JCenter
- Artifacts group and id parameters were changed
- Support of ViewTreeLifecycleOwner for
ViewGroup
bindings LifecycleViewBindingProperty
lifecycle management improvements- Improvements in viewBinding implementation for
DialogFragment
- Bugfixes
- Added support of
RecyclerView.ViewHolder
- Added support of
ViewGroup
- Added an option to use the
viewBinding
delegate without specifying rootView. - Improved speed of
viewBinding
usage with reflection - More ways of creating
ViewBinding
usingViewBinding.inflate
instead ofViewBinding.bind
- Breaking changes
viewBinding()
in Activities usesViewBinding.bind
instead ofViewBinding.inflate
. UseviewBinding(CreateMethod.INFLATE)
to switch to old behavior - Split implementation of lazy
viewBinding
delegate and implementation with lifecycle - Minor improvements and bugfixes
- Bug fixes
- Added support of creating
ViewBinding
usingViewBinding.inflate(LayoutInflater)
- Added an option to create
ViewBindingProperty
using aClass<ViewBinding>
instance - Upgrade view binding library to 4.1.0
- Improved performance: removed the check working on the main thread within
ViewBindingProperty
- Update the sample
- Bug fixing
- Fix bugs
- Add an artifact
vbpd-noreflection
without reflection when creating aViewBindingProperty
- Fix a bug in Fragment
- Simplify API
- Add Android 4.0+ support
- Support Android View Binding inside
Fragment
,ComponentActivity
andDialogFragment