Skip to content

Commit

Permalink
Bump library version to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
h6ah4i committed Dec 16, 2018
1 parent c9b9cdd commit c350a08
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 14 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,23 @@ Target platforms
Latest version
---

- Version 0.11.0 (October 29, 2017) ([RELEASE NOTES](./RELEASE-NOTES.md))
- Version 1.0.0 (December 16, 2018) ([RELEASE NOTES](./RELEASE-NOTES.md))


**Recent Breaking Change Info**

- **v0.11.0:**
- Since official support libraries have dropped support older API levels than v14, this library does also dropped support them since v0.11.0. If you still need to support API level v9, please continue to use v0.10.6.
- A new callback `onItemSwipeStarted()` is added to `SwipeableItemAdapter`. Users must invoke appropriate `notify*()` method in this method.
- A new callback `onItemDragStarted()` is added to `DraggableItemAdapter`. Users must invoke appropriate `notify*()` method in this method.
- A new callback `onItemDragFinished()` is added to `DraggableItemAdapter`. Users must invoke appropriate `notify*()` method in this method.
- **v1.0.0:**
- Migrated to AndroidX (Use **v0.11.0** instead if your project uses support libraries)
- `BaseWrapperAdapter`
- Removed some deprecated features
- `SwipeableItemConstants.REACTION_CAN_SWIPE_BOTH`
- `SwipeableItemConstants.REACTION_CAN_NOT_SWIPE_BOTH`
- `SwipeableItemConstants.REACTION_CAN_NOT_SWIPE_BOTH_WITH_RUBBER_BAND_EFFECT`
- New `DraggableItemState getDragState()` method added to the `DraggableItemViewHolder` interface
- New `SwipeableItemState getSwipeState()` method added to the `SwipeableItemViewHolder` interface
- New `ExpandableItemState getExpandState()` method added to the `ExpandableItemViewHolder` interface

- **v0.10.4:** `OnGroupExpandListener` and `OnGroupCollapseListener` takes `payload` parameter. (related: [issue #350](https://github.com/h6ah4i/android-advancedrecyclerview/issues/350))
:point_right: [Migration guide from v0.11.0 to v1.0.0](https://advancedrecyclerview.h6ah4i.com/migration/)


Getting started
Expand All @@ -56,9 +61,7 @@ This library is published on jCenter. Just add these lines to `build.gradle`.

```gradle
dependencies {
implementation ('com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.11.0@aar'){
transitive=true
}
implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:1.0.0'
}
```

Expand Down
20 changes: 20 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
## 1.0.0
[Breaking changes]
- Migrated to AndroidX
- Removed some deprecated features
- `BaseWrapperAdapter`
- `SwipeableItemConstants.REACTION_CAN_SWIPE_BOTH`
- `SwipeableItemConstants.REACTION_CAN_NOT_SWIPE_BOTH`
- `SwipeableItemConstants.REACTION_CAN_NOT_SWIPE_BOTH_WITH_RUBBER_BAND_EFFECT`
- New `DraggableItemState getDragState()` method added to the `DraggableItemViewHolder` interface
- New `SwipeableItemState getSwipeState()` method added to the `SwipeableItemViewHolder` interface
- New `ExpandableItemState getExpandState()` method added to the `ExpandableItemViewHolder` interface

[New features & improvements]
- Introduced `DraggableItemState`, no more `DraggableItemConstants.STATE_FLAG_**` bit operations required anymore in user code
- Introduced `SwipeableItemState`, no more `SwipeableItemConstants.STATE_FLAG_**` bit operations required anymore in user code
- Introduced `ExpandableItemState`, no more `ExpandableItemConstants.STATE_FLAG_**` bit operations required anymore in user code
- Annotated many public method with `@NonNull` or `@Nullable`



## 0.11.0
[Breaking changes]
- Changed minimum SDK level to v14
Expand Down
4 changes: 2 additions & 2 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android {
applicationId "com.h6ah4i.android.example.advrecyclerview"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 29
versionName "0.11.0"
versionCode 30
versionName "1.0.0"
vectorDrawables.useSupportLibrary = true
}

Expand Down
4 changes: 2 additions & 2 deletions library/library-data.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# suppress inspection "UnusedProperty" for whole file
# common
VERSION_NAME=0.11.0
VERSION_CODE=29
VERSION_NAME=1.0.0
VERSION_CODE=30

# for maven-publish
POM_GROUP_ID=com.h6ah4i.android.widget.advrecyclerview
Expand Down

0 comments on commit c350a08

Please sign in to comment.