Skip to content

Commit

Permalink
Merge branch 'release/v3.2.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Feb 7, 2018
2 parents 2b46f3c + d795802 commit 3ed6ea3
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 27 deletions.
3 changes: 3 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### Upgrade Notes

#### v3.2.4
* Adjusted the `set(int position, Item item, int preItemCount)` to include the `preItemCount` to corretly notify the adapter about the changed element.

#### v3.2.3
* The `ActionModeHelper` requires a `FastAdapter` with the `SelectExtension` applied. This is done in current versions via `withSelectable(true)`. Make sure this is called before creating the `ActionModeHelper`.

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@ You can try it out here [Google Play](https://play.google.com/store/apps/details

The library is split up into core, commons, and extensions. The core functions are included in the following dependency.
```gradle
implementation 'com.mikepenz:fastadapter:3.2.3@aar'
implementation 'com.mikepenz:fastadapter:3.2.4@aar'
implementation 'com.android.support:appcompat-v7:${latestSupportLib}'
implementation 'com.android.support:recyclerview-v7:${latestSupportLib}'
```

The commons package comes with some useful helpers (which are not needed in all cases) This one for example includes the `FastItemAdapter`
```gradle
implementation 'com.mikepenz:fastadapter-commons:3.2.3@aar'
implementation 'com.mikepenz:fastadapter-commons:3.2.4@aar'
```

Expandable support is included and can be added via this
```gradle
implementation 'com.mikepenz:fastadapter-extensions-expandable:3.2.3@aar'
implementation 'com.mikepenz:fastadapter-extensions-expandable:3.2.4@aar'
//The tiny Materialize library used for its useful helper classes
implementation 'com.mikepenz:materialize:${latestVersion}@aar'
```

Many helper classes are included in the following dependency. (This functionality also needs the `Expandable` extension
```gradle
implementation 'com.mikepenz:fastadapter-extensions:3.2.3@aar'
implementation 'com.mikepenz:fastadapter-extensions:3.2.4@aar'
implementation 'com.android.support:design:${versions.supportLib}'
//The tiny Materialize library used for its useful helper classes
implementation 'com.mikepenz:materialize:${latestVersion}@aar'
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
defaultConfig {
minSdkVersion setup.minSdk
targetSdkVersion setup.targetSdk
versionCode 3230
versionName '3.2.3'
versionCode 3240
versionName '3.2.4'

setProperty("archivesBaseName", "FastAdapter-v$versionName-c$versionCode")
}
Expand Down
6 changes: 3 additions & 3 deletions library-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'

group "com.mikepenz"
version "3.2.3"
version "3.2.4"

android {
compileSdkVersion setup.compileSdk
Expand All @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion setup.minSdk
targetSdkVersion setup.targetSdk
versionCode 3230
versionName '3.2.3'
versionCode 3240
versionName '3.2.4'

consumerProguardFiles 'consumer-proguard-rules.pro'

Expand Down
4 changes: 2 additions & 2 deletions library-core/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
POM_NAME=FastAdapter Library
POM_ARTIFACT_ID=fastadapter
POM_PACKAGING=aar
VERSION_NAME=3.2.3
VERSION_CODE=3230
VERSION_NAME=3.2.4
VERSION_CODE=3240
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public interface IItemList<Item> {

void addAll(List<Item> items, int preItemCount);

void set(int position, Item item);
void set(int position, Item item, int preItemCount);

void set(List<Item> items, int preItemCount, @Nullable IAdapterNotifier adapterNotifier);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public ModelAdapter<Model, Item> setInternal(int position, Item item) {
if (mUseIdDistributor) {
getIdDistributor().checkId(item);
}
mItems.set(position - getFastAdapter().getPreItemCount(position), item);
mItems.set(position, item, getFastAdapter().getPreItemCount(position));
mFastAdapter.registerTypeInstance(item);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public boolean isEmpty() {
}

@Override
public void set(int position, Item item) {
mItems.set(position, item);
public void set(int position, Item item, int preItemCount) {
mItems.set(position - preItemCount, item);
getFastAdapter().notifyAdapterItemChanged(position);
}

Expand Down
4 changes: 2 additions & 2 deletions library-extensions-expandable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion setup.minSdk
targetSdkVersion setup.targetSdk
versionCode 3230
versionName '3.2.3'
versionCode 3240
versionName '3.2.4'
}
buildTypes {
release {
Expand Down
4 changes: 2 additions & 2 deletions library-extensions-expandable/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
POM_NAME=FastAdapter Library-Extensions-Expandable
POM_ARTIFACT_ID=fastadapter-extensions-expandable
POM_PACKAGING=aar
VERSION_NAME=3.2.3
VERSION_CODE=3230
VERSION_NAME=3.2.4
VERSION_CODE=3240
4 changes: 2 additions & 2 deletions library-extensions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion setup.minSdk
targetSdkVersion setup.targetSdk
versionCode 3230
versionName '3.2.3'
versionCode 3240
versionName '3.2.4'

consumerProguardFiles 'consumer-proguard-rules.pro'
}
Expand Down
4 changes: 2 additions & 2 deletions library-extensions/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
POM_NAME=FastAdapter Library-Extensions
POM_ARTIFACT_ID=fastadapter-extensions
POM_PACKAGING=aar
VERSION_NAME=3.2.3
VERSION_CODE=3230
VERSION_NAME=3.2.4
VERSION_CODE=3240
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion setup.minSdk
targetSdkVersion setup.targetSdk
versionCode 3230
versionName '3.2.3'
versionCode 3240
versionName '3.2.4'
}
buildTypes {
release {
Expand Down
4 changes: 2 additions & 2 deletions library/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
POM_NAME=FastAdapter Library
POM_ARTIFACT_ID=fastadapter-commons
POM_PACKAGING=aar
VERSION_NAME=3.2.3
VERSION_CODE=3230
VERSION_NAME=3.2.4
VERSION_CODE=3240

0 comments on commit 3ed6ea3

Please sign in to comment.