All Versions
17
Latest Version
Avg Release Cycle
15 days
Latest Release
31 days ago

Changelog History
Page 2

  • v5.0.0-a07

    February 21, 2020

    ๐Ÿ›  Fixes

    • โœ‚ remove the type from the factory
        - resolve #871
    • ๐Ÿ—„ reverse deprecation of AbstractItem for convenient reasons
    • eliminate unnecessary duplicated class
    • ๐Ÿ“‡ rename AbstractBindingItemVHFactory to BaseBindingItemVHFactory
    • eliminate layoutRes from interface where it is no longer needed, especially when using viewBinding
        - FIX #874
    • even further simplify the view binding case, by providing an AbstractItem.kt which does not require a custom ViewHolder
      • introduce extension functions to simplify hooking up click event hooks to binding items
      • FIX #872
    • simplify AbstractItem.kt by basing on top of the BaseItem.kt
    • ๐Ÿ›ฐ adjust all payloads to be immutable MutableList<Any> -> List<Any>
        - FIX #813
        - NOTE it requires a full clean, will compile though with MD and AboutLibraries

    โšก๏ธ Dependency Updates

    • โšก๏ธ update to latest android iconics library
    • ๐Ÿš€ update to compatible materialDrawer release using the new FastAdapter v8.0.0-a06
    • โšก๏ธ update to new compatible AboutLibraries v8.0.0-b05
    • โšก๏ธ update to stable material 1.0.0

    Sample

    • โœ‚ remove unnecessary layout, fix overlapping statusbar in SortActivity.kt

    Migration

    • ๐Ÿ›ฐ Note that the bindView(holder: VH, payloads: List<Any>) will use a List now instead a MutableList
  • v5.0.0-a06

    February 15, 2020

    ๐Ÿ›  Fixes

    • ๐Ÿ‘ to further migrate towards a better separation of responsibilities we have introduced a new interface which will describe the logic for creating the ViewHolder the IItemVHFactory.
    • To complete this interface there is now a new BaseItem and ModelBaseItem to allow splitting item logic, and ViewHolder creation logic.
    • ๐Ÿ—„ The old AbstractItem and ModelAbstractItem are now deprecated in favor of the newer approach
    • The IItem interface no longer contains the Factory logic
    • It is still possible to implement items "the old way" by using the AbstractItem or by providing the IItemVHFactory beside the IItem interface, and also the IItemViewGenerator if needed

    Migration

    OLD

    If the Item implementation looked like:

    class SimpleImageItem : AbstractItem\<SimpleImageItem.ViewHolder\>() { override val type: Int get() = R.id.fastadapter\_simple\_image\_item\_id override val layoutRes: Int get() = R.layout.simple\_image\_item override fun bindView(holder: ViewHolder, payloads: MutableList\<Any\>) { ... } override fun unbindView(holder: ViewHolder) { } override fun getViewHolder(v: View): ViewHolder { return ViewHolder(v) } class ViewHolder(view: View) : RecyclerView.ViewHolder(view) { var view: FrameLayout ... } }
    

    ๐Ÿ†• NEW

    โ™ป๏ธ It should be refactored to look like:

    class SimpleImageItem : BaseItem\<SimpleImageItem.ViewHolder\>() { override val type: Int get() = R.id.fastadapter\_simple\_image\_item\_id override val factory: IItemVHFactory\<ViewHolder\> = SimpleImageItemFactoryoverride fun bindView(holder: ViewHolder, payloads: MutableList\<Any\>) { ... } override fun unbindView(holder: ViewHolder) { ... } class ViewHolder(view: View) : RecyclerView.ViewHolder(view) { var view: FrameLayout } }object SimpleImageItemFactory : BaseItemFactory\<SimpleImageItem.ViewHolder\>() { override val type: Int get() = R.id.fastadapter\_simple\_image\_item\_id override val layoutRes: Int get() = R.layout.simple\_image\_item override fun getViewHolder(v: View): SimpleImageItem.ViewHolder { return SimpleImageItem.ViewHolder(v) } }
    
  • v5.0.0-a05

    February 12, 2020

    ๐Ÿ›  Fixes

    • ๐Ÿ‘Œ improve AbstractBindingItem.kt by also providing the parent
  • v5.0.0-a04

    February 12, 2020

    ๐Ÿ›  Fixes

    • introduce new binding module which adds abstract items to simplify usage with viewbinding / databinding
    • โšก๏ธ update to AS 4.0.0-alpha09 for viewbinding / databinding
    • โž• add compileOnly dependency for viewBinding interface
    • ๐Ÿ‘‰ use iconItem from viewBinding in the sample app
    • ๐Ÿ›  FIX / REGARDING #822
  • v5.0.0-a03

    January 20, 2020

    ๐Ÿ›  Fixes

    • ModelAdapter.kt does not require peeking
    • override peeking in the PagedModelAdapter.kt
    • protect the peek code from overflowing
        - fix #861
  • v5.0.0-a02

    January 20, 2020

    ๐Ÿ”‹ Features

    • โ™ป๏ธ refactor to use MaterialDrawer v8
    • โ™ป๏ธ refactor to use Iconcis v5
    • โ™ป๏ธ refactor to use AboutLibraries v8
    • โœ‚ remove materialize
    • ๐Ÿ‘ Allow swipes without setting "leave-behind" drawables (Thanks @StuStirling)

    ๐Ÿ›  Fixes

    • try to solve the issue of the paged list being fully loaded when asking for the selected item
        - fix #861
  • v5.0.0-a01

    December 28, 2019

    ๐Ÿ”‹ Features

    • Adapters can now be marked as active (true / false).
      • Inactive adapters are not shown in the list e.g. changes to their item set will not result in changes in the UI
      • #854

    ๐Ÿ”„ Changes

    • Code cleanup and improvements (#851)
      • Thanks to @zTrap
      • replaced usage of 'magic number' -1 by RecyclerView.NO_POSITION constant
      • added @JvmStatic for all functions in Util object classes
      • cleared some explicit parameters
      • cleared documentations
      • added function for removing PagedListListener from PagedItemListImpl
      • bumped versions of dependencies
      • optimized some methods and classes
    • โœ‚ remove the generic type specification for the adapter (#845)

    Interface Changes

    • The FastAdapter.with() methods now have. generic type less