Releases: androidbroadcast/ViewBindingPropertyDelegate
2.0.0-beta01
- 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.viewbindingpropertydelegate
todev.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
- Minor improvements
Changed under hood tracking of View lifecycle
- 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
1.5.9
- Fix build-in ProGuard and R8 configuration for obfuscation after migrate from AAR to JAR
1.5.8
- 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
Artifacts Renaming
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
1.5.6
Bug fixes
1.5.3
November 19, 2021
- Fix clear Fragment when it will be destroyed
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
1.4.7
- Bugs fixing
1.4.6
- Bug fixing
1.4.4
- Improve checking of
Fragment
'sViewLifecycleOwner
1.4.3
- Update built-in ProGuard rules