Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-platform library project - separate uis? #367

Open
mandrachek opened this issue Dec 3, 2024 · 2 comments
Open

multi-platform library project - separate uis? #367

mandrachek opened this issue Dec 3, 2024 · 2 comments

Comments

@mandrachek
Copy link

I've got a kmp library project where we're using room, and want to add support for room-paging. This should be feasible (although maybe buggy) with the latest room alpha. This uses room-paging, which in turn has a dependency on the androidx paging-common. The library doesn't provide any ui, it handles the network and data storage and access layers. The consumers of this library project are native Android and iOS apps, that are each responsible for their own UI.

On the Android, it looks very straightforward (same good old PagingSource) - but things are a bit murkier for the native iOS app. It is feasible for the iOS devs to use the PagingSource directly? Would they make use ofpaging-runtime-uikit in some way?

@mandrachek mandrachek changed the title androidx.paging - multi-platform library multi-platform library project - separate uis? Dec 3, 2024
@mandrachek
Copy link
Author

It looks like paging-runtime-uikit can use the androidx paging-common - it's just a bit out of date - 🤞 there's no breaking api changes and I can just drop it into my project.

@mandrachek
Copy link
Author

So, unfortunately PagingCollectionViewController has dependencies on androidx.paging.AsyncPagingDataDiffer, androidx.recyclerview.widget.DiffUtil, and androidx.recyclerview.widget.ListUpdateCallback which are not present in the current paging-common (3.3.4 - or 3.3.2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@mandrachek and others