Open Borderliner opened 4 months ago
I'm sorry, I'm not familiar with Koin right now. But the error messages seem like a problem I had before. Maybe it's the same as in Kotlin, you need to initialize your RoomBackup instance outside of an onClicklistener or something where a new lifecycle starts. I have described it in the Properties section. Or have a look at my Kotlin examples: Activity and Fragment. Please let me know if this works for you and I apologize for the late reply.
How do I utilize this library with Koin? Koin passes
Application
instead ofComponentActivity
and it pops up errors. Here's my database module:And this is how I get the instance in my composable:
It fails with:
I'd appreciate it if you could provide a solution here or in readme file for Koin users.