-
Change
targetSdkVersion
andcompileSdkVersion
to32
. -
Updated dependencies
Kotlin
to1.7.10
.AGP
to7.2.2
.Gradle
to7.5
.AndroidX Fragment
to1.5.1
.AndroidX Lifecycle
to2.5.1
.AndroidX ViewBinding
to7.2.2
.AndroidX AppCompat
to1.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 inApplication
class orAndroidX StartUp Initializer
class.public fun preloadBindMethods(vararg classes: KClass<out ViewBinding>)
.public fun preloadInflateMethods(vararg classes: KClass<out ViewBinding>)
.
-
Internal refactoring
Method
s cache.
- Update
DefaultViewBindingDialogFragment
's implementation. - Remove
@PublishedApi
onGetInflateMethod
. - The message of thrown exceptions is more friendly.
- Fix a
NullPointerException
whenbinding
isnull
andonDestroyView
is notnull
. - Refactor implementations: replace
anonymous functions
bySAM conversions
.
-
Change
targetSdkVersion
andcompileSdkVersion
to 31. -
Updated dependencies
- Kotlin to 1.6.10
- AGP to 7.0.4
- Gradle to 7.3.3
-
Others
- Update Github workflows.
- Tracking API compatibility.
- Change
minSdkVersion
to14
.
- Updated dependencies:
- Kotlin to 1.5.21
- AGP to 7.0.0
- Gradle to 7.1.1
-
This is our first stable release.
-
Updated dependencies:
- Kotlin to 1.5.0.
- AGP to 4.2.
- Downgrade Gradle to 6.8.3 (JitPack.io cannot build with Gradle 7.0)
-
Update docs.
-
Updated dependencies:
- Kotlin to 1.4.32.
- Gradle to 7.0.
- AGP to 4.1.3.
-
Breaking change: Now, cannot access ViewBinding delegate property in
onDestroyView
(this causes many problems). Recommended way is passing a lambda toonDestroyView: (T.() -> Unit)? = null
parameter of extension functions, eg.private val binding by viewBinding<FragmentFirstBinding>() { /*this: FragmentFirstBinding*/ button.setOnClickListener(null) recyclerView.adapter = null }
-
New feature: add inflating extensions
ViewGroup.inflateViewBinding(attachToParent: Boolean)
.LayoutInflater.inflateViewBinding(parent: ViewGroup? = null, attachToParent: Boolean = parent != null)
.Context.inflateViewBinding(parent: ViewGroup? = null, attachToParent: Boolean = parent != null)
.
-
Updated dependencies:
- Gradle to 6.8.2.
- Android Gradle plugin to 4.1.2.
- New features:
- Add
dialogFragmentViewBinding
,DialogFragmentViewBindingDelegate
: supports for theDialog
ofDialogFragment
.
- Add
- Updated dependencies:
- Gradle to 6.7.1.
- Android Gradle plugin to 4.1.1.
- Android build tool to 30.0.3.
- Kotlin to 1.4.21.
- Hotfix
- Update to Kotlin 1.4.0, enable explicit API mode.
- Cache
java.lang.reflect.Method
, updateconsumer-rules.pro
. - Update README.md, documentation, example.
- Update README.md.
- Update example.
- Publish.