ViewBindingPropertyDelegate

Make work with Android View Binding simpler

APACHE-2.0 License

Stars
1.4K

Bot releases are hidden (Show)

ViewBindingPropertyDelegate - 1.5.9 Latest Release

Published by kirich1409 over 1 year ago

  • Fix build-in ProGuard and R8 configuration for obfuscation after migrate from AAR to JAR
ViewBindingPropertyDelegate - 1.5.8

Published by kirich1409 over 1 year ago

  • 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

ViewBindingPropertyDelegate - 1.5.6

Published by kirich1409 over 2 years ago

Bug fixes

ViewBindingPropertyDelegate - 1.5.3

Published by kirich1409 almost 3 years ago

November 19, 2021

  • Fix clear Fragment when it will be destroyed
ViewBindingPropertyDelegate - 1.5.2

Published by kirich1409 almost 3 years ago

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
ViewBindingPropertyDelegate - 1.4.7

Published by kirich1409 over 3 years ago

  • Bugs fixing
ViewBindingPropertyDelegate - 1.4.6

Published by kirich1409 over 3 years ago

  • Bug fixing
ViewBindingPropertyDelegate - 1.4.4

Published by kirich1409 over 3 years ago

  • Improve checking of Fragment's ViewLifecycleOwner
ViewBindingPropertyDelegate - 1.4.3

Published by kirich1409 over 3 years ago

  • Update built-in ProGuard rules
ViewBindingPropertyDelegate - 1.4.2

Published by kirich1409 over 3 years ago

  • Migrate to Maven Central. This is the latest releases available via JCenter.
  • Artifacts group and id were changed for artifacts on Maven Central. See README for more details
  • Support of ViewTreeLifecycleOwner for ViewGroup bindings
  • LifecycleViewBindingProperty lifecycle management improvements
  • Improvements in viewBinding work for DialogFragment
  • Bugfixes
ViewBindingPropertyDelegate - 1.4.1

Published by kirich1409 almost 4 years ago

  • Bug fixes
ViewBindingPropertyDelegate - 1.4.0

Published by kirich1409 almost 4 years ago

  • Added support of RecyclerView.ViewHolder
  • Added support of ViewGroup
  • Added possibility to use the viewBinding delegate without specifying rootView.
  • Improved speed of usage viewBinding with reflection
  • More ways of creating ViewBinding using ViewBinding.inflate instead of ViewBinding.bind
  • Breaking changes viewBinding() in Activities use ViewBinding.bind instead of ViewBinding.inflate. To return previous behaviour use viewBinding(CreateMethod.INFLATE)
  • Split implementation of lazy viewBinding delegate and implementation with lifecycle
  • Minor improvements and bugfixes
ViewBindingPropertyDelegate - 1.3.1

Published by kirich1409 almost 4 years ago

  • Fix possible memory leak
  • Fix bug in DialogFragment
ViewBindingPropertyDelegate - 1.3.0

Published by kirich1409 almost 4 years ago

  • Added support of create ViewBinding using ViewBinding.inflate(LayoutInflater)
  • Added possibility to create ViewBindingProperty using Class<ViewBinding> instance
  • Upgrade view binding library to 4.1.0
  • Improved performance: removed check working from the main thread with ViewBindingProperty
  • Update sample
ViewBindingPropertyDelegate - 1.2.2

Published by kirich1409 about 4 years ago

  • Bug fixing
ViewBindingPropertyDelegate - 1.2.1

Published by kirich1409 about 4 years ago

  • Bug fixing
ViewBindingPropertyDelegate - 1.2.0

Published by kirich1409 about 4 years ago

  • Add artifact vbpd-noreflection without reflection when create a ViewBindingProperty
  • Fix bug in Fragment
ViewBindingPropertyDelegate - 1.1.0

Published by kirich1409 about 4 years ago

  • Simplify API
ViewBindingPropertyDelegate - 1.1.0-beta02

Published by kirich1409 about 4 years ago

  • Bug fix
ViewBindingPropertyDelegate - 1.1.0-beta01

Published by kirich1409 about 4 years ago

  • Improved API
  • Simpler way to use viewBinding without reflection
  • Dependencies udates
Badges
Extracted from project README
Maven Central
Related Projects