Skip to content

Releases: androidbroadcast/ViewBindingPropertyDelegate

2.0.0-beta01

12 Jan 18:10
Compare
Choose a tag to compare
  • 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-* to dev.androidbroadcast.vbpd:vbpd-*
  • Change classes base package from com.github.kirich1409.viewbindingpropertydelegate to dev.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

29 Mar 08:08
Compare
Choose a tag to compare
  • Fix build-in ProGuard and R8 configuration for obfuscation after migrate from AAR to JAR

1.5.8

05 Feb 10:48
Compare
Choose a tag to compare
  • 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

18 Feb 07:32
Compare
Choose a tag to compare

Bug fixes

1.5.3

19 Nov 04:16
Compare
Choose a tag to compare

November 19, 2021

  • Fix clear Fragment when it will be destroyed

1.5.2

13 Nov 12:47
Compare
Choose a tag to compare

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

07 Jul 18:23
Compare
Choose a tag to compare
  • Bugs fixing

1.4.6

05 May 10:47
Compare
Choose a tag to compare
  • Bug fixing

1.4.4

04 Mar 18:42
Compare
Choose a tag to compare
  • Improve checking of Fragment's ViewLifecycleOwner

1.4.3

03 Mar 09:02
Compare
Choose a tag to compare
  • Update built-in ProGuard rules