Skip to content

Commit

Permalink
Merge pull request #21 from manneohlund/rc-5.0.0
Browse files Browse the repository at this point in the history
Rc 5.0.0
  • Loading branch information
manneohlund authored Oct 4, 2020
2 parents 90063b0 + 127ae6a commit 663ff00
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 46 deletions.
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,35 @@ This library will make it easy and painless to map your data item with a target
# Features

###### OnViewEventListener
* Smart <b>OnClick</b> / <b>OnLongClickListener</b> <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/SimpleItemOnClickOnLongClickActivity.kt" target="_blank">SimpleItemOnClickOnLongClickActivity</a></sup>
* State holding with <b>OnItemSelectedListener</b> <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/MultipleViewTypesResolverActivity.kt" target="_blank">MultipleViewTypesResolverActivity</a></sup>
* Custom View Events <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/CustomViewEventActivity.kt" target="_blank">CustomViewEventActivity</a></sup>
* Smart <b>OnClick</b> / <b>OnLongClickListener</b> <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/SimpleItemOnClickOnLongClickActivity.kt" target="_blank">SimpleItemOnClickOnLongClickActivity</a></sup>
* State holding with <b>OnItemSelectedListener</b> <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/MultipleViewTypesResolverActivity.kt" target="_blank">MultipleViewTypesResolverActivity</a></sup>
* Custom View Events <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/CustomViewEventActivity.kt" target="_blank">CustomViewEventActivity</a></sup>
###### ItemTouchHelper Swipe, Drag & Drop extensions
* Drag & drop <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/DragAndDropItemActivity.kt" target="_blank">DragAndDropItemActivity</a></sup>
* Drag & drop with handle <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/DragAndDropHandleItemActivity.kt" target="_blank">DragAndDropHandleItemActivity</a></sup>
* Swipe to remove item <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/SwipeRemoveItemActivity.kt" target="_blank">SwipeRemoveItemActivity</a></sup>
* Drag & drop, Swipe, View Events <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/MultipleEventsAndExtensionsActivity.kt" target="_blank">MultipleEventsAndExtensionsActivity</a></sup>
* Grid + Drag & drop <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/GridActivity.kt" target="_blank">GridActivity</a></sup>
* Drag & drop <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/DragAndDropItemActivity.kt" target="_blank">DragAndDropItemActivity</a></sup>
* Drag & drop with handle <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/DragAndDropHandleItemActivity.kt" target="_blank">DragAndDropHandleItemActivity</a></sup>
* Swipe to remove item <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/SwipeRemoveItemActivity.kt" target="_blank">SwipeRemoveItemActivity</a></sup>
* Drag & drop, Swipe, View Events <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/MultipleEventsAndExtensionsActivity.kt" target="_blank">MultipleEventsAndExtensionsActivity</a></sup>
* Grid + Drag & drop <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/GridActivity.kt" target="_blank">GridActivity</a></sup>
###### ViewTypeResolver
* Multiple ViewHolder types resolver <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/MultipleViewTypesResolverActivity.kt" target="_blank">MultipleViewTypesResolverActivity</a></sup>
* Multiple ViewHolder types resolver <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/MultipleViewTypesResolverActivity.kt" target="_blank">MultipleViewTypesResolverActivity</a></sup>
###### SmartStateHolder
* Multiple items select <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/MultiSelectItemsActivity.kt" target="_blank">MultiSelectItemsActivity</a></sup>
* Single RadioButton select <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/SingleSelectRadioButtonItemActivity.kt" target="_blank">SingleSelectRadioButtonItemActivity</a></sup>
* Multiple CheckBox select <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/MultiSelectCheckBoxItemsActivity.kt" target="_blank">MultiSelectCheckBoxItemsActivity</a></sup>
* Multiple Switch select <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/MultiSelectSwitchItemsActivity.kt" target="_blank">MultiSelectSwitchItemsActivity</a></sup>
* Multiple Expandable items <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/MultipleExpandableItemActivity.kt" target="_blank">MultipleExpandableItemActivity</a></sup>
* Single Expandable item <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/SingleExpandableItemActivity.kt" target="_blank">SingleExpandableItemActivity</a></sup>
* Multiple items select <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/MultiSelectItemsActivity.kt" target="_blank">MultiSelectItemsActivity</a></sup>
* Single RadioButton select <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/SingleSelectRadioButtonItemActivity.kt" target="_blank">SingleSelectRadioButtonItemActivity</a></sup>
* Multiple CheckBox select <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/MultiSelectCheckBoxItemsActivity.kt" target="_blank">MultiSelectCheckBoxItemsActivity</a></sup>
* Multiple Switch select <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/MultiSelectSwitchItemsActivity.kt" target="_blank">MultiSelectSwitchItemsActivity</a></sup>
* Multiple Expandable items <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/MultipleExpandableItemActivity.kt" target="_blank">MultipleExpandableItemActivity</a></sup>
* Single Expandable item <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/SingleExpandableItemActivity.kt" target="_blank">SingleExpandableItemActivity</a></sup>
###### Nested adapter
* Nested SmartRecyclerAdapter <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/NestedSmartRecyclerAdaptersActivity.kt" target="_blank">NestedSmartRecyclerAdaptersActivity</a></sup>
* Nested SmartRecyclerAdapter <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/NestedSmartRecyclerAdaptersActivity.kt" target="_blank">NestedSmartRecyclerAdaptersActivity</a></sup>
###### Pagination
* Endless scroll <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/EndlessScrollActivity.kt" target="_blank">EndlessScrollActivity</a></sup>
* Endless scroll with load more button <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/EndlessScrollLoadMoreButtonActivity.kt" target="_blank">EndlessScrollLoadMoreButtonActivity</a></sup>
* Endless scroll <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/EndlessScrollActivity.kt" target="_blank">EndlessScrollActivity</a></sup>
* Endless scroll with load more button <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/EndlessScrollLoadMoreButtonActivity.kt" target="_blank">EndlessScrollLoadMoreButtonActivity</a></sup>
###### DiffUtil
* Diff Util extension <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta01/sample/src/main/java/smartrecycleradapter/feature/DiffUtilActivity.kt" target="_blank">DiffUtilActivity</a></sup>
* Diff Util extension <sup><a href="https://github.com/manneohlund/smart-recycler-adapter/blob/5.0.0-beta02/sample/src/main/java/smartrecycleradapter/feature/DiffUtilActivity.kt" target="_blank">DiffUtilActivity</a></sup>

#### Release overview

* Kotlin + AndroidX (jcenter, jitpack) [v5.0.0-beta01](https://github.com/manneohlund/smart-recycler-adapter/tree/5.0.0-beta01)
* Kotlin + AndroidX (jcenter, jitpack) [v5.0.0-beta02](https://github.com/manneohlund/smart-recycler-adapter/tree/5.0.0-beta02)
* Kotlin + AndroidX (jcenter, jitpack) [v4.0.0](https://github.com/manneohlund/smart-recycler-adapter/tree/4.0.0)
* Java + AndroidX (jcenter, jitpack) [v3.0.0](https://github.com/manneohlund/smart-recycler-adapter/tree/3.0.0)
* Java + AppCompat (jitpack) [v2.2.0](https://github.com/manneohlund/smart-recycler-adapter/tree/2.2.0)
Expand All @@ -53,7 +53,7 @@ Add `jcenter()` or `maven { url "https://dl.bintray.com/manneohlund/maven" }` t
```groovy
dependencies {
// Core SmartRecyclerAdapter
implementation 'io.github.manneohlund:smart-recycler-adapter:5.0.0-beta01'
implementation 'io.github.manneohlund:smart-recycler-adapter:5.0.0-beta02'
}
```

Expand All @@ -62,7 +62,7 @@ dependencies {
```groovy
dependencies {
// ViewEvent click listeners, multi select, swipe dismiss and drag & drop
implementation 'io.github.manneohlund:smart-recycler-adapter-viewevent:1.0.0-alpha01'
implementation 'io.github.manneohlund:smart-recycler-adapter-viewevent:1.0.0-alpha02'
}
```

Expand Down Expand Up @@ -131,7 +131,7 @@ You can create any type of `SmartViewHolderBinder` extension and implement any n

### View Events

`io.github.manneohlund:smart-recycler-adapter-viewevent:1.0.0-alpha01` comes with a range of ViewEvent listeners.<br/>
`io.github.manneohlund:smart-recycler-adapter-viewevent:1.0.0-alpha02` comes with a range of ViewEvent listeners.<br/>
Default `viewId` is `R.id.undefined` that targets root view of the ViewHolder (ViewHolder.itemView).

```kotlin
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ ext {
PROJ_NAME = 'SmartRecyclerAdapter'
PROJ_GROUP_ID = 'io.github.manneohlund'
PROJ_ARTIFACT_ID = 'smart-recycler-adapter'
PROJ_VERSION_CODE = 12
PROJ_VERSION_NAME = '5.0.0-beta01'
PROJ_VERSION_CODE = 13
PROJ_VERSION_NAME = '5.0.0-beta02'

TARGET_SDK_VERSION = 28
BUILD_TOOLS_VERSION = '29.0.2'
Expand Down
4 changes: 2 additions & 2 deletions extensions/viewevent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ apply plugin: 'maven-publish'
ext {
LIB_ARTIFACT_NAME = 'SmartRecyclerAdapter ViewEvent'
LIB_ARTIFACT_ID = 'smart-recycler-adapter-viewevent'
LIB_VERSION_CODE = 1
LIB_VERSION_NAME = '1.0.0-alpha01'
LIB_VERSION_CODE = 2
LIB_VERSION_NAME = '1.0.0-alpha02'
LIB_DESCRIPTION = 'View Event listeners extension library for SmartRecyclerAdapter'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import smartadapter.ViewId
import smartadapter.findView
import smartadapter.listener.OnCreateViewHolderListener
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewholder.OnItemClickEventListener
import smartadapter.viewevent.viewholder.OnItemClickEventListener
import smartadapter.viewholder.SmartViewHolder

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import smartadapter.SmartRecyclerAdapter
import smartadapter.SmartViewHolderBinder
import smartadapter.listener.OnCreateViewHolderListener
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewholder.CustomViewEventListenerHolder
import smartadapter.viewevent.viewholder.CustomViewEventListenerHolder
import smartadapter.viewholder.SmartViewHolder

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import smartadapter.ViewId
import smartadapter.findView
import smartadapter.listener.OnCreateViewHolderListener
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewholder.OnItemLongClickEventListener
import smartadapter.viewevent.viewholder.OnItemLongClickEventListener
import smartadapter.viewholder.SmartViewHolder

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import smartadapter.listener.OnBindViewHolderListener
import smartadapter.listener.OnCreateViewHolderListener
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewevent.state.SmartStateHolder
import smartadapter.viewevent.viewholder.OnItemSelectedEventListener
import smartadapter.viewevent.viewmodel.ViewEventViewModel
import smartadapter.viewholder.OnItemSelectedEventListener
import smartadapter.viewholder.SmartViewHolder
import java.util.TreeSet

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import smartadapter.ViewId
import smartadapter.findView
import smartadapter.listener.OnCreateViewHolderListener
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewholder.OnItemTouchEventListener
import smartadapter.viewevent.viewholder.OnItemTouchEventListener
import smartadapter.viewholder.SmartViewHolder

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import androidx.recyclerview.widget.RecyclerView
import smartadapter.SmartRecyclerAdapter
import smartadapter.SmartViewHolderType
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewholder.OnItemSwipedListener
import smartadapter.viewevent.viewholder.OnItemSwipedListener
import smartadapter.viewholder.SmartViewHolder
import kotlin.math.abs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package smartadapter.viewholder
package smartadapter.viewevent.viewholder

/*
* Created by Manne Öhlund on 2020-01-08.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package smartadapter.viewholder
package smartadapter.viewevent.viewholder

import smartadapter.viewevent.model.ViewEvent

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package smartadapter.viewholder
package smartadapter.viewevent.viewholder

import smartadapter.viewevent.model.ViewEvent

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package smartadapter.viewholder
package smartadapter.viewevent.viewholder

import smartadapter.viewevent.model.ViewEvent

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package smartadapter.viewholder
package smartadapter.viewevent.viewholder

import smartadapter.viewevent.model.ViewEvent

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package smartadapter.viewholder
package smartadapter.viewevent.viewholder

import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewevent.swipe.SwipeEventBinder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package smartadapter.viewholder
package smartadapter.viewevent.viewholder

import smartadapter.viewevent.model.ViewEvent

Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/java/smartrecycleradapter/DemoActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import smartadapter.viewevent.listener.OnClickEventListener
import smartadapter.viewevent.listener.OnCustomViewEventListener
import smartadapter.viewevent.listener.OnLongClickEventListener
import smartadapter.viewevent.listener.OnTouchEventListener
import smartadapter.viewholder.CustomViewEventListenerHolder
import smartadapter.viewevent.viewholder.CustomViewEventListenerHolder
import smartadapter.viewholder.SmartAdapterHolder
import smartrecycleradapter.data.MovieDataItems
import smartrecycleradapter.extension.PreCachingLinearLayoutManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import smartadapter.SmartRecyclerAdapter
import smartadapter.viewevent.extension.add
import smartadapter.viewevent.listener.OnCustomViewEventListener
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewholder.CustomViewEventListenerHolder
import smartadapter.viewevent.viewholder.CustomViewEventListenerHolder
import smartadapter.viewholder.SmartAdapterHolder
import smartadapter.viewholder.SmartViewHolder
import smartrecycleradapter.R
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import smartadapter.SmartRecyclerAdapter
import smartadapter.viewevent.extension.add
import smartadapter.viewevent.listener.OnMultiItemSelectListener
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewevent.viewholder.OnItemSelectedEventListener
import smartadapter.viewevent.viewmodel.ViewEventViewModel
import smartadapter.viewholder.OnItemSelectedEventListener
import smartadapter.viewholder.SmartViewHolder
import smartrecycleradapter.R

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import smartadapter.viewevent.extension.add
import smartadapter.viewevent.listener.OnClickEventListener
import smartadapter.viewevent.listener.OnLongClickEventListener
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewholder.OnItemClickEventListener
import smartadapter.viewholder.OnItemLongClickEventListener
import smartadapter.viewevent.viewholder.OnItemClickEventListener
import smartadapter.viewevent.viewholder.OnItemLongClickEventListener
import smartrecycleradapter.feature.simpleitem.SimpleItemViewHolder
import smartrecycleradapter.utils.showToast

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.bumptech.glide.request.RequestOptions
import smartadapter.Position
import smartadapter.SmartRecyclerAdapter
import smartadapter.viewevent.model.ViewEvent
import smartadapter.viewholder.CustomViewEventListenerHolder
import smartadapter.viewevent.viewholder.CustomViewEventListenerHolder
import smartadapter.viewholder.SmartAdapterHolder
import smartadapter.viewholder.SmartViewHolder
import smartrecycleradapter.R
Expand Down

0 comments on commit 663ff00

Please sign in to comment.