Skip to content

Commit

Permalink
chore(build.gradle): bump version to 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hussein Aladeen committed Apr 3, 2019
1 parent cc193ed commit e4ce792
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Have your RecyclerView use the adapter [ItemViewAdapter](reclaim/src/main/kotlin
```kotlin
val manager = LinearLayoutManager(this)
recyclerView.setLayoutManager(manager)
adapter = ItemsViewAdapter(this)
adapter = ItemsViewAdapter()
recyclerView.setAdapter(adapter)
```

Expand Down Expand Up @@ -56,7 +56,7 @@ class PlanetViewHolder(view: View) : BaseViewHolder(view) {
Simply add instances of your adapter item to your adapter by calling [ItemViewAdapter.addItem(item: AdapterItem)](reclaim/src/main/kotlin/com/fueled/reclaim/ItemsViewAdapter.kt#L113) or [ItemViewAdapter.addItemsList(items: List<AdapterItem<*>)](reclaim/src/main/kotlin/com/fueled/reclaim/ItemsViewAdapter.kt#L45)

```kotlin
adapter = ItemsViewAdapter(this)
adapter = ItemsViewAdapter()
recyclerView.setAdapter(adapter)
for (planet in planets) {
adapter.addItem(PlanetItem(planet))
Expand Down Expand Up @@ -86,7 +86,7 @@ class PlanetItem(private val planet: String) : AdapterItem<PlanetItemViewHolder>

Then add them to your view adapter:
```kotlin
adapter = ItemsViewAdapter(this)
adapter = ItemsViewAdapter()
recyclerView.setAdapter(adapter)

adapter.addItem(HeaderItem("Header YEAH!"))
Expand Down Expand Up @@ -125,7 +125,7 @@ class PlanetViewHolder(view: View) : BaseViewHolder(view) {
in your activity:

```kotlin
adapter = ItemsViewAdapter(this)
adapter = ItemsViewAdapter()
recyclerView.setAdapter(adapter)

val handler = { planet: String -> displayPlanet(planet) }
Expand Down
2 changes: 1 addition & 1 deletion reclaim/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spotless {
}

group = 'com.github.fueled'
version = '2.0.0'
version = '2.1.0'

ext.limits.instruction = 95
ext.limits.branch = 85
Expand Down

0 comments on commit e4ce792

Please sign in to comment.