Join Slack
Powered by
Anyone has a sample of Room database declaration u...
# koin
p
Pedro Francisco de Sousa Neto
01/17/2024, 6:12 PM
Anyone has a sample of Room database declaration using koin-annotations?
Pedro Francisco de Sousa Neto
01/17/2024, 6:30 PM
I'm curious because Room database builder will require app context to build the room database object.
a
Alexandru Caraus
01/17/2024, 6:34 PM
You can create a function fun buildRoom(context) = Room.., annotate it with @Single, and you are good to go, it will land in the default module.
☝️ 1
93
Views
Open in Slack
Previous
Next