Skip to content

v4.0.0

Compare
Choose a tag to compare
@manneohlund manneohlund released this 28 Sep 14:56
· 147 commits to master since this release
0489f54

Important

This v4.0.0 release contains non backwards compatible changes.

  • This version has migrated all library code to Kotlin.
  • No Java to Kotlin interop support added in this version.
  • ViewEventListeners has crossinline support for lambda calls.

What’s new

General

  • 100% translation into Kotlin.

OnViewEventListener

  • New ViewEventListener implementation with Kotlin properties instead of java default method calls.
  • Library ViewEventListener extensions ex: OnItemClickListener, OnItemLongClickListener has crossinline lambda call helper methods.

ViewHolder interfaces

  • Method calls has been replaced with properties in most Holders ex DraggableViewHolder, SmartAdapterHolder, ViewEventListenerHolder, StatefulViewHolder.

More

  • Removed getViewEventListeners, use viewEventMapper.viewEventListenerMap atm.
  • SmartRecyclerAdapter takes both mutable and immutable lists, immutable lists are converted to mutable lists.
  • Optimizations, minor refactoring, bug fixes