Skip to content

Commit e99c8ef

Browse files
committed
release(recyclerview-ktx): v0.2.0
1 parent 5cc9c83 commit e99c8ef

File tree

3 files changed

+53
-6
lines changed

3 files changed

+53
-6
lines changed

androidx/recyclerview/recyclerview-ktx/CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,47 @@ for API usage.
1111

1212
---
1313

14+
<a name="0.2.0"></a>
15+
16+
## 0.2.0 (21 March 2025)
17+
18+
* [Maven Central](https://central.sonatype.com/artifact/io.github.edricchan03.androidx.recyclerview/recyclerview-ktx/0.2.0)
19+
* [GitHub release](https://github.com/EdricChan03/androidx-ktx-extras/releases/tag/[email protected])
20+
* [Full changelog](https://github.com/EdricChan03/androidx-ktx-extras/compare/[email protected]@0.2.0)
21+
22+
### Notable changes
23+
24+
> [!warning]
25+
> Note that this module is built with Kotlin 2.0.0+ and may require
26+
> the [K2 compiler](https://kotlinlang.org/docs/k2-compiler-migration-guide.html).
27+
28+
* Top-level [
29+
`itemCallback`](https://edricchan03.github.io/androidx-ktx-extras/androidx/recyclerview/recyclerview-ktx/io.github.edricchan03.androidx.recyclerview.ktx/item-callback.html)
30+
and [
31+
`callback`](https://edricchan03.github.io/androidx-ktx-extras/androidx/recyclerview/recyclerview-ktx/io.github.edricchan03.androidx.recyclerview.ktx/callback.html)
32+
methods are added to create a [
33+
`DiffUtil.ItemCallback`](https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/DiffUtil.ItemCallback.html)
34+
and [
35+
`DiffUtil.Callback`](https://developer.android.com/reference/kotlin/androidx/recyclerview/widget/DiffUtil.Callback.html)
36+
respectively.
37+
38+
#### Added functions
39+
40+
* [Function
41+
`callback`](https://edricchan03.github.io/androidx-ktx-extras/androidx/recyclerview/recyclerview-ktx/io.github.edricchan03.androidx.recyclerview.ktx/callback.html)
42+
43+
* [Function
44+
`itemCallback`](https://edricchan03.github.io/androidx-ktx-extras/androidx/recyclerview/recyclerview-ktx/io.github.edricchan03.androidx.recyclerview.ktx/item-callback.html)
45+
46+
### API dependencies
47+
48+
These are the dependencies marked with the `api` configuration that the library uses:
49+
50+
Artifact | Version
51+
---|---
52+
[`androidx.annotation:annotation`](https://developer.android.com/jetpack/androidx/releases/annotation) | [1.9.1](https://developer.android.com/jetpack/androidx/releases/annotation#1.9.1)
53+
[`androidx.recyclerview:recyclerview`](https://developer.android.com/jetpack/androidx/releases/recyclerview) | [1.4.0](https://developer.android.com/jetpack/androidx/releases/recyclerview#recyclerview-1.4.0)
54+
1455
<a name="0.1.0"></a>
1556

1657
## 0.1.0 (20 March 2025)

androidx/recyclerview/recyclerview-ktx/Module.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencyResolutionManagement {
2626
### Kotlin/Groovy
2727

2828
```kotlin
29-
implementation("io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1.0")
29+
implementation("io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.2.0")
3030
```
3131

3232
### TOML
@@ -35,7 +35,7 @@ implementation("io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1
3535

3636
```toml
3737
[libaries]
38-
androidxtra-recyclerview-ktx = "io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1.0"
38+
androidxtra-recyclerview-ktx = "io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.2.0"
3939
```
4040

4141
`build.gradle.kts`:
@@ -72,7 +72,7 @@ dependencyResolutionManagement {
7272
`build.gradle.kts`:
7373

7474
```kotlin
75-
implementation("io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1.0-SNAPSHOT")
75+
implementation("io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.3.0-SNAPSHOT")
7676
```
7777

7878
#### TOML
@@ -81,7 +81,7 @@ implementation("io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1
8181

8282
```toml
8383
[libaries]
84-
androidxtra-recyclerview-ktx = "io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.1.0-SNAPSHOT"
84+
androidxtra-recyclerview-ktx = "io.github.edricchan03.androidx.recyclerview:recyclerview-ktx:0.3.0-SNAPSHOT"
8585
```
8686

8787
`build.gradle.kts`:
@@ -90,7 +90,7 @@ androidxtra-recyclerview-ktx = "io.github.edricchan03.androidx.recyclerview:recy
9090
implementation(libs.androidxtra.recyclerview.ktx)
9191
```
9292

93-
## Available extensions
93+
## Available extensions/methods
9494

9595
Currently, the following extension functions are available:
9696

@@ -104,6 +104,12 @@ Extension function | Getter | Setter
104104
[`RecyclerView.hasFixedSize`][io.github.edricchan03.androidx.recyclerview.ktx.hasFixedSize] | [`RecyclerView.hasFixedSize`][androidx.recyclerview.widget.RecyclerView.hasFixedSize] | [`RecyclerView.setHasFixedSize`][androidx.recyclerview.widget.RecyclerView.setHasFixedSize]
105105
[`RecyclerView.Adapter.hasStableIds`][io.github.edricchan03.androidx.recyclerview.ktx.hasStableIds] | [`RecyclerView.Adapter.hasStableIds`][androidx.recyclerview.widget.RecyclerView.Adapter.hasStableIds] | [`RecyclerView.Adapter.setHasStableIds`][androidx.recyclerview.widget.RecyclerView.Adapter.setHasStableIds]
106106

107+
### Top-level methods
108+
109+
* [`callback`][io.github.edricchan03.androidx.recyclerview.ktx.callback] (new in version 0.2.0)
110+
* [`itemCallback`][io.github.edricchan03.androidx.recyclerview.ktx.itemCallback] (new in version
111+
0.2.0)
112+
107113
# Package io.github.edricchan03.androidx.recyclerview.ktx
108114

109115
Top-level Kotlin extensions/utils

androidx/recyclerview/recyclerview-ktx/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
androidxKtx {
10-
mavenCoordinates.version = "0.1.0"
10+
mavenCoordinates.version = "0.2.0"
1111

1212
libraryType = LibraryType.Android
1313

0 commit comments

Comments
 (0)