Anyone has a sample of Room database declaration u...
# koin
p
Anyone has a sample of Room database declaration using koin-annotations?
I'm curious because Room database builder will require app context to build the room database object.
a
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