Skip to content

Commit

Permalink
Merge pull request #14 from manneohlund/rc-4.1.0
Browse files Browse the repository at this point in the history
Rc 4.1.0
  • Loading branch information
manneohlund authored Jan 19, 2020
2 parents 0489f54 + aadf949 commit 462745c
Show file tree
Hide file tree
Showing 26 changed files with 330 additions and 181 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: android
dist: trusty
android:
components:
# Uncomment the lines below if you want to
Expand All @@ -8,17 +7,15 @@ android:
- platform-tools
- extra-android-support
- build-tools-29.0.2
- build-tools-28.0.3
- android-29
- android-28
- sys-img-armeabi-v7a-android-18
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- yes | sdkmanager "platforms;android-28"
- yes | sdkmanager "platforms;android-29"
- yes | sdkmanager "build-tools;29.0.2"
- yes | sdkmanager "build-tools;28.0.3"
jdk:
- oraclejdk8
before_script:
Expand Down
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,31 @@ 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/4.0.0/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/4.0.0/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/4.0.0/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/4.1.0/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/4.1.0/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/4.1.0/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/4.0.0/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/4.0.0/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/4.0.0/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/4.0.0/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/4.0.0/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/4.1.0/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/4.1.0/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/4.1.0/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/4.1.0/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/4.1.0/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/4.0.0/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/4.1.0/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/4.0.0/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/4.0.0/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/4.0.0/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/4.0.0/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/4.0.0/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/4.0.0/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/4.1.0/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/4.1.0/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/4.1.0/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/4.1.0/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/4.1.0/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/4.1.0/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/4.0.0/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/4.1.0/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/4.0.0/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/4.0.0/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/4.1.0/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/4.1.0/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/4.0.0/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/4.1.0/sample/src/main/java/smartrecycleradapter/feature/DiffUtilActivity.kt" target="_blank">DiffUtilActivity</a></sup>

#### Release overview

Expand All @@ -48,7 +48,7 @@ This library will make it easy and painless to map your data item with a target
Add `jcenter()` or `maven { url "https://dl.bintray.com/manneohlund/maven" }` to your `build.gradle` under `repositories`
```groovy
dependencies {
implementation 'io.github.manneohlund:smart-recycler-adapter:4.0.0'
implementation 'io.github.manneohlund:smart-recycler-adapter:4.1.0'
}
```

Expand Down
10 changes: 8 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

ext {
ARTIFACT_NAME = 'smart-recycler-adapter'
VERSION_CODE = 10
VERSION_NAME = '4.0.0'
VERSION_CODE = 11
VERSION_NAME = '4.1.0'
TARGET_SDK_VERSION = 28
BUILD_TOOLS_VERSION = '29.0.2'
MIN_SDK_VERSION = 14

appcompat_version = '1.1.0'
recyclerview_version = '1.1.0'
material_version = '1.2.0-alpha03'
constraintlayout_version = '1.1.3'
annotation_version = '1.1.0'
}

buildscript {
Expand Down
16 changes: 9 additions & 7 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ android {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
resValue "string", "app_name", "SmartAdapter"
}
debug {
applicationIdSuffix ".debug"
debuggable true
minifyEnabled false
resValue "string", "app_name", "Debug"
}
beta {
initWith debug
Expand All @@ -50,6 +52,7 @@ android {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
matchingFallbacks = ['debug']
resValue "string", "app_name", "Beta"
}
}

Expand Down Expand Up @@ -81,17 +84,16 @@ dependencies {
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testImplementation 'junit:junit:4.12'

implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.android.material:material:1.1.0-alpha09'
implementation "androidx.annotation:annotation:$annotation_version"
implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
implementation "androidx.appcompat:appcompat:$appcompat_version"
implementation "androidx.recyclerview:recyclerview:$recyclerview_version"
implementation "com.google.android.material:material:$material_version"

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation 'com.github.bumptech.glide:glide:4.9.0'

//implementation 'io.github.manneohlund:smart-recycler-adapter:3.0.0'
//implementation 'io.github.manneohlund:smart-recycler-adapter:4.1.0'
implementation project(':smartadapter')
}
60 changes: 20 additions & 40 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,87 +13,67 @@
android:theme="@style/AppTheme">
<activity
android:name=".feature.SimpleItemActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.SimpleItemOnClickOnLongClickActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.CustomViewEventActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.MultipleViewTypesResolverActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.DragAndDropItemActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.DragAndDropHandleItemActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.SwipeRemoveItemActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.MultipleEventsAndExtensionsActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.GridActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.MultiSelectItemsActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.SingleSelectRadioButtonItemActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.MultiSelectCheckBoxItemsActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.MultiSelectSwitchItemsActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.NestedSmartRecyclerAdaptersActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.EndlessScrollActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.EndlessScrollLoadMoreButtonActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.DiffUtilActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.MultipleExpandableItemActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".feature.SingleExpandableItemActivity"
android:theme="@style/AppTheme.NoActionBar">
</activity>
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".MovieCategoryDetailsActivity"
android:label="@string/title_activity_movie_category_details"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".DemoActivity"
android:label="SmartRecyclerAdapters">
android:name=".DemoActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.MAIN" />
Expand Down
Loading

0 comments on commit 462745c

Please sign in to comment.