- Fix memory leaks when using VBPD in Activities #127
- Removing checking access from the Main thread to correct work with AsyncLayoutInflater
- VBPD-reflection: revert new generic param in 2.0.0 for Activity ViewBindings
- Changed under hood tracking of View lifecycle in ViewBindingPropertyDelegate
- Removed ViewBindingPropertyDelegate base on Lifecycle
- Removed Jetpack Lifecycle dependencies
- Remove Strict Modes checks
- Up Min sdk to API Level 21 Android 5.0 Lollipop
- Remove internal checking of possibility to access host's view
- Change artifact from
com.github.kirich1409:viewbindingpropertydelegate-*todev.androidbroadcast.vbpd:vbpd-* - Change classes base package from
com.github.kirich1409.viewbindingpropertydelegatetodev.androidbroadcast.vbpd. It allows to use 1.X and 2.X versions together - Remove onViewDestroyCallback() from ViewBindingPropertyDelegate
- Update Jetpack dependencies. All of them connected as compileOnly dependencies that's why you can use any version of them in project, but with required APIs
- All libraries artifacts distributes as AAR instead of JAR
- Fix bugs working during inter-Fragment's animations
- Upgrade JVM target from 8 to 11
- Minor improvements
- Fragment: Replace Jetpack Lifecycle with FragmentManager.FragmentLifecycleCallbacks
- Activity: Remove cleaning view after Activity.onDestroy()
- ViewGroup: Will be kept during View instance life
- RecyclerView.ViewHolder: Will be kept during ViewHolder instance life
- Bugs fixes
- Fix build-in ProGuard and R8 configuration for obfuscation
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
ViewGroupbindings LifecycleViewBindingPropertylifecycle management improvements- Improvements in viewBinding implementation for
DialogFragment - Bugfixes
- Added support of
RecyclerView.ViewHolder - Added support of
ViewGroup - Added an option to use the
viewBindingdelegate without specifying rootView. - Improved speed of
viewBindingusage with reflection - More ways of creating
ViewBindingusingViewBinding.inflateinstead ofViewBinding.bind - Breaking changes
viewBinding()in Activities usesViewBinding.bindinstead ofViewBinding.inflate. UseviewBinding(CreateMethod.INFLATE)to switch to old behavior - Split implementation of lazy
viewBindingdelegate and implementation with lifecycle - Minor improvements and bugfixes
- Bug fixes
- Added support of creating
ViewBindingusingViewBinding.inflate(LayoutInflater) - Added an option to create
ViewBindingPropertyusing 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-noreflectionwithout reflection when creating aViewBindingProperty - Fix a bug in Fragment
- Simplify API
- Add Android 4.0+ support
- Support Android View Binding inside
Fragment,ComponentActivityandDialogFragment