SmartRecyclerAdapter v4.0.0 Release Notes

Release Date: 2019-09-28 // over 4 years ago
  • 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