Hi all! Just published Multiplatform Paging, a lib...
# multiplatform
v
Hi all! Just published Multiplatform Paging, a library that packages AndroidX Paging for Kotlin/Multiplatform. It’s built to be a drop-in-replacement for AndroidX Paging, so extracting out shared pagination logic couldn’t be easier. Please check it out if you're interested! Introductory blog post: https://code.cash.app/announcing-multiplatform-paging Repository: https://github.com/cashapp/multiplatform-paging
K 29
m
Uhh, nice if it works with SQLDelight
v
Yep, I was talking to @alec (maintainer of SQLDelight) and we're planning on adding support in SQLDelight
@Matthias Geisler Tracking issue for above: https://github.com/cashapp/sqldelight/issues/3661
o
This is awesome! Thanks for sharing! I'm currently working on an open source KMP project for Android, iOS and Desktop and will be taking a look at this to use! 🙌🙏
j
@veyndan I've implemented a paging extension, based on SQLDelight's, in my KMP bindings library for Couchbase Lite, utilizing your multiplatform paging library. It works well, despite the clunkiness of the required manual casting workarounds. I'm wondering if you've experienced or are aware of the IDE being unable to properly resolve some of the aliased classes. For example, for code that compiles and runs fine, I'm getting errors like this in the IDE:
Type mismatch.
Required:
app.cash.paging.PagingConfig /* = androidx.paging.PagingConfig */
Found:
app.cash.paging.PagingConfig
Also, for a class implementing
PagingSource
, overridden
load()
and
getRefreshKey()
functions say: "overrides nothing", I believe for the same reason of not properly resolving the parameter and return types. This is in Android Studio Dolphin.
v
@Jeff Lockhart Yeah, I've experienced those issues in the IDE too. I'm pretty sure the issues are related to the noted API discrepancies, and fixing those would fix the issues in the IDE. Unfortunately, I'm not sure what can be done about it, apart from relying on the CLI more and seeing if later IDE releases fixes these bugs
j
I upvoted the related YouTrack issues. 👍
k
Is there any way to supress those Type mismatch errors in the ide? it’s driving me crazy
1
592 Views