Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Commit

Permalink
Use latest build tools add RecyclerView2 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Decky Fiyemonda committed Oct 24, 2018
1 parent cca51bd commit 50c03af
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
Binary file removed .idea/caches/build_file_checksums.ser
Binary file not shown.
11 changes: 6 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
buildToolsVersion '28.0.2'

defaultConfig {
applicationId "com.github.deckyfx.simpleadapterapp"
minSdkVersion 14
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -28,8 +28,8 @@ dependencies {

// NOTE: test libraries
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

// NOTE: support libraries
implementation "com.android.support:appcompat-v7:$android_support_version"
Expand All @@ -38,7 +38,8 @@ dependencies {

implementation project(path: ':simpleadapter')
//implementation project(path: ':simpleadapter-kotlin')
//implementation project(path: ':simpleadapter')implementation 'com.github.deckyfx:simpleadapter:-SNAPSHOT@aar'
//implementation project(path: ':simpleadapter')
implementation 'com.github.deckyfx:simpleadapter:-SNAPSHOT@aar'

implementation 'com.google.code.gson:gson:2.8.2'
}
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.10'
ext.android_support_version = '27.0.2'
ext.kotlin_version = '1.2.51'
ext.android_support_version = '27.1.1'

repositories {
google()
Expand All @@ -11,7 +11,7 @@ buildscript {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-alpha16'
classpath 'com.android.tools.build:gradle:3.4.0-alpha01'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Additional libraries
Expand Down
10 changes: 5 additions & 5 deletions simpleadapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def artifactName = 'simpleadapter'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
buildToolsVersion '28.0.2'

defaultConfig {
minSdkVersion 14
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.0"

Expand Down Expand Up @@ -86,8 +86,8 @@ dependencies {

// NOTE: test libraries
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

// NOTE: support libraries
provided "com.android.support:appcompat-v7:$android_support_version"
Expand All @@ -99,7 +99,7 @@ dependencies {
provided 'com.google.code.gson:gson:2.8.2'
provided 'com.squareup.moshi:moshi:1.5.0'
provided 'com.fasterxml.jackson.core:jackson-databind:2.8.4'
provided 'com.fasterxml.jackson.core:jackson-core:2.8.4'
provided 'com.fasterxml.jackson.core:jackson-core:2.9.4'
provided 'com.fasterxml.jackson.core:jackson-annotations:2.8.4'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class RecyclerAdapter<E extends BaseItem> extends RecyclerView.Adapter<Ab
private Filter mFilter;
private int mCountMargin;
private AnimationSet mScrollAnimation;
private Object mTag;

public RecyclerAdapter(Context ctx, AdapterDataSet<E> itemsList) {
this(ctx, itemsList, AdapterUtil.DEFAULT_LIST_VIEW.SIMPLE_LIST_ITEM_1, DefaultViewHolder.class);
Expand Down Expand Up @@ -123,6 +124,14 @@ public Filter getFilter() {
return this.mFilter;
}

public Object getTag() {
return this.mTag;
}

public void setTag(Object tag) {
this.mTag = tag;
}

public interface OnViewBindListener {
void onViewBind(RecyclerAdapter adapter, AbstractViewHolder vh, int position);
}
Expand Down

0 comments on commit 50c03af

Please sign in to comment.