Simple one-liner ViewBinding in Fragments and Activities with Kotlin 🍄 Simplify usage of Android View Binding with Kotlin Property Delegates and solve behavior of Fragment’s ViewLifecycleOwner 🌱 ViewBindingPropertyDelegate
Change targetSdkVersion
and compileSdkVersion
to 32
.
Updated dependencies
Kotlin
to 1.7.10
.AGP
to 7.2.2
.Gradle
to 7.5
.AndroidX Fragment
to 1.5.1
.AndroidX Lifecycle
to 2.5.1
.AndroidX ViewBinding
to 7.2.2
.AndroidX AppCompat
to 1.4.2
.New feature: added 2 preload functions used to find and cache
java.lang.reflect.Method
s when using reflection, which can improve the performance. We should
call 2 methods in Application
class or AndroidX StartUp Initializer
class.
public fun preloadBindMethods(vararg classes: KClass<out ViewBinding>)
.public fun preloadInflateMethods(vararg classes: KClass<out ViewBinding>)
.Internal refactoring Method
s cache.
Full Changelog: https://github.com/hoc081098/ViewBindingDelegate/compare/1.3.1...1.4.0
Full Changelog: https://github.com/hoc081098/ViewBindingDelegate/compare/1.4.0-beta02...1.4.0-beta03
TBD
Full Changelog: https://github.com/hoc081098/ViewBindingDelegate/compare/1.3.1...1.4.0-beta01
DefaultViewBindingDialogFragment
's implementation.@PublishedApi
on GetInflateMethod
.NullPointerException
when binding
is null
and onDestroyView
is not null
.anonymous functions
by SAM conversions
.Full Changelog: https://github.com/hoc081098/ViewBindingDelegate/compare/1.3.0...1.3.1
Change targetSdkVersion
and compileSdkVersion
to 31.
Updated dependencies
Others
Full Changelog: https://github.com/hoc081098/ViewBindingDelegate/compare/1.2.0...1.3.0
minSdkVersion
to 14
.