Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@dokar3 dokar3 released this 16 Sep 12:39
· 66 commits to master since this release

What's Changed

  • Add support for Paging 3
  • Add diffCallback {} DSL to create a DiffUtil.ItemCallback
  • Rename the parameter differ of the items() to diffCallback and change the type to DiffUtil.ItemCallback.
    A quick migration:
    + import com.dokar.lazyrecycler.differCallback
    
    items(
    -    differ = {
    +    diffCallback = diffCallback {
              areItemsTheSame { oldItem, newItem -> oldItem.id == newItem.id }
              areContentsTheSame { oldItem, newItem -> oldItem == newItem }
         }
    ) { ... }
  • Bump Kotlin to 1.9.10, recyclerview to 1.3.1, bump other dependencies