From d0576fa4a978c0908fbad0de521505c8c6989def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tears=E4=B8=B6=E6=AE=8B=E9=98=B3?= Date: Tue, 14 Sep 2021 22:16:43 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E7=BB=91=E5=AE=9A=E7=9A=84bug.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 2 +- gradle.properties | 2 +- jitpack.yml | 6 ------ recyclerview.adapter/build.gradle | 4 ++-- .../numeron/recyclerview/adapter/AutomaticBindingHolder.kt | 2 +- 5 files changed, 5 insertions(+), 11 deletions(-) delete mode 100644 jitpack.yml diff --git a/build.gradle b/build.gradle index 50743f4..648866e 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ buildscript { ext { gradle_version = "4.2.2" - kotlin_version = "1.5.21" + kotlin_version = "1.5.30" } repositories { maven { url 'https://maven.aliyun.com/repository/google' } diff --git a/gradle.properties b/gradle.properties index c62d94f..a113b80 100644 --- a/gradle.properties +++ b/gradle.properties @@ -22,7 +22,7 @@ kotlin.code.style=obsolete org.gradle.daemon=false GROUP=cn.numeron -VERSION_NAME=1.1.0 +VERSION_NAME=1.1.2 POM_NAME=recyclerview.adapter POM_DESCRIPTION=Quickly\40create\40RecyclerView.Adapter\40auxiliary\40tools. diff --git a/jitpack.yml b/jitpack.yml deleted file mode 100644 index c5b0fa8..0000000 --- a/jitpack.yml +++ /dev/null @@ -1,6 +0,0 @@ -jdk: - - openjdk11 -install: - - chmod +x gradlew - - ./gradlew build - - ./gradlew publishToMavenLocal \ No newline at end of file diff --git a/recyclerview.adapter/build.gradle b/recyclerview.adapter/build.gradle index 0a40c6c..a9997c8 100644 --- a/recyclerview.adapter/build.gradle +++ b/recyclerview.adapter/build.gradle @@ -44,6 +44,6 @@ android { dependencies { api 'cn.numeron:common:1.0.5' - api 'cn.numeron:stateless.livedata:1.0.2' - compileOnly 'androidx.paging:paging-runtime-ktx:3.1.0-alpha03' + api 'cn.numeron:stateless.livedata:1.0.3' + compileOnly 'androidx.paging:paging-runtime-ktx:3.0.1' } \ No newline at end of file diff --git a/recyclerview.adapter/src/main/kotlin/cn/numeron/recyclerview/adapter/AutomaticBindingHolder.kt b/recyclerview.adapter/src/main/kotlin/cn/numeron/recyclerview/adapter/AutomaticBindingHolder.kt index 1bf5893..5de5fb1 100644 --- a/recyclerview.adapter/src/main/kotlin/cn/numeron/recyclerview/adapter/AutomaticBindingHolder.kt +++ b/recyclerview.adapter/src/main/kotlin/cn/numeron/recyclerview/adapter/AutomaticBindingHolder.kt @@ -27,7 +27,7 @@ open class AutomaticBindingHolder, DB : ViewDataBinding>(bin } override fun binding(position: Int) { - val item = list.getItem(position) + val item = list.getOrNull(position) bindItemMethods[dataBindingClassName]?.invoke(binding, item) bindClickMethods[dataBindingClassName]?.invoke(binding, clickEvent) binding.executePendingBindings()