pagination-patterns
Installation
SKILL.md
Pagination Patterns for Mobile
Dependencies (Android)
dependencies {
val pagingVersion = "3.5.1"
implementation("androidx.paging:paging-compose:$pagingVersion") // brings in paging-common
implementation("androidx.paging:paging-runtime:$pagingVersion") // only for RecyclerView/PagingDataAdapter
testImplementation("androidx.paging:paging-testing:$pagingVersion")
}
KMP note: paging-common and paging-testing went multiplatform in 3.3; paging-compose shipped only an Android artifact then and gained the non-Android targets (JVM/desktop, Apple, Linux, MinGW, JS, wasmJs) in 3.4.0. On 3.4+ both Pager/PagingSource and collectAsLazyPagingItems() can live in commonMain; paging-runtime (and the RxJava/Guava artifacts) stay Android-only.