-
-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
608 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,28 @@ | ||
language: android | ||
|
||
android: | ||
components: | ||
# Update tools and then platform-tools explicitly so lint gets an updated database. Can be removed once 3.0 is out. | ||
- tools | ||
- platform-tools | ||
- sys-img-armeabi-v7a-android-18 | ||
|
||
# The BuildTools version used by your project | ||
- build-tools-27.0.1 | ||
|
||
# The SDK version used to compile your project | ||
- build-tools-27.0.2 | ||
- android-27 | ||
|
||
# Additional components | ||
- extra-google-m2repository | ||
- extra-android-m2repository | ||
licenses: | ||
- '.+' | ||
|
||
- sys-img-armeabi-v7a-android-18 | ||
before_install: | ||
- yes | sdkmanager "platforms;android-27" | ||
- yes | sdkmanager "build-tools;27.0.1" | ||
- yes | sdkmanager "build-tools;27.0.2" | ||
jdk: | ||
- oraclejdk8 | ||
|
||
before_script: | ||
# Install SDK license so Android Gradle plugin can install deps. | ||
- mkdir "$ANDROID_HOME/licenses" || true | ||
- echo "\n8933bad161af4178b1185d1a37fbf41ea5269c55\nd56f5187479451eabf01fb78af6dfcb131a6481e\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-license" | ||
|
||
script: ./gradlew clean test | ||
|
||
- oraclejdk8 | ||
script: | ||
- ./gradlew clean test | ||
branches: | ||
except: | ||
- gh-pages | ||
|
||
notifications: | ||
email: false | ||
|
||
sudo: false | ||
|
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
|
||
cache: | ||
directories: | ||
- $HOME/.gradle | ||
- $HOME/.m2 | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.0.5 | ||
VERSION_CODE=3050 | ||
VERSION_NAME=3.1.0 | ||
VERSION_CODE=3100 |
36 changes: 36 additions & 0 deletions
36
library-core/src/main/java/com/mikepenz/fastadapter/IItemList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.mikepenz.fastadapter; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* The Item list interface | ||
*/ | ||
|
||
public interface IItemList<Item> { | ||
|
||
int getAdapterPosition(long identifier); | ||
|
||
void remove(int position, int preItemCount); | ||
|
||
void removeRange(int position, int itemCount, int preItemCount); | ||
|
||
void move(int fromPosition, int toPosition, int preItemCount); | ||
|
||
int size(); | ||
|
||
void clear(int preItemCount); | ||
|
||
boolean isEmpty(); | ||
|
||
void addAll(List<Item> items, int preItemCount); | ||
|
||
void set(int position, Item item); | ||
|
||
void setNewList(List<Item> items); | ||
|
||
void addAll(int position, List<Item> items, int preItemCount); | ||
|
||
List<Item> getItems(); | ||
|
||
Item get(int position); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.