workflow-kotlin icon indicating copy to clipboard operation
workflow-kotlin copied to clipboard

Write database-backed example for kotlin

Open rjrjr opened this issue 4 years ago • 9 comments

We need example of driving long, random access list from a database —  RecyclerView pulling from Rooms or SqlDelight

rjrjr avatar Sep 12 '19 20:09 rjrjr

And/or the AndroidX paging library

zach-klippenstein avatar Sep 13 '19 16:09 zach-klippenstein

@rjrjr Is this still a valid issue? If yes, I would like to work upon it

RotBolt avatar Feb 16 '23 00:02 RotBolt

Yes please! It would need to be a separate module so that none of the existing ones get tied to whatever SqlDelight or whatever. At this point a Compose example might be more useful than RecyclerView or AndroidX Paging.

rjrjr avatar Feb 16 '23 17:02 rjrjr

@steve-the-edwards or @RBusarow would probably be a better reviewer / co-designer for it than I would.

rjrjr avatar Feb 16 '23 17:02 rjrjr

Sure, I will get started with jetpack compose only. @steve-the-edwards @RBusarow let me know if there is anything I need to know apart from the workflow-kotlin docs

RotBolt avatar Feb 28 '23 09:02 RotBolt

🍿

It'd be wise to share a quick description of whatever design you're thinking of as a sanity check.

rjrjr avatar Mar 01 '23 00:03 rjrjr

Sure. I will share by weekend

RotBolt avatar Mar 01 '23 17:03 RotBolt

Hi @rjrjr Sorry for too much delay from side I am thinking of extending the Todo example which is in Tutorial section. For the UI part, in LayoutRunners, where we are setting the data in adapters currently. I believe I can simply render the list with Jetpack compose. For database, currently thinking of using Room library only for Worker implementation. I will have the Worker as a dependency inside TodoListWorkFlow sth like TodoListWorkFlow(val worker:TodoWorker).

Rest of the details, I believe I would be able to tell when I actually get to start write an example

RotBolt avatar Mar 21 '23 15:03 RotBolt

I am sorry, I was MIA for 3 months or so, there was a family emergency I have started tutorials as of now. I will get to create database backed example soon

RotBolt avatar Jun 15 '23 09:06 RotBolt