Hello, I’m working on an Android Library and I wou...
# koin
r
Hello, I’m working on an Android Library and I would like to use Koin on it. I’ve read few questions on koin’s github issue tracker but I feel I’m missing few concepts so I wonder if there’s a sample project somewhere or a tutorial where I can follow. I’ve been googling already and I couldn’t find anything so far. To be more concrete, the question I’m reading is this one https://github.com/InsertKoinIO/koin/issues/224 And Arnaud talks about creating a dedicated koin instance. I guess I’ve done something like that for testing but still, not sure how to use the CustomKoinComponent he defines on the comment with date Oct 27
a
isn’t it solved in here https://github.com/InsertKoinIO/koin/issues/429 ? Basic idea here is to create a new instance of
KoinApplication
and use it inside you SDK.
Copy code
private val koinApplication = KoinApplication.init().apply {
        loadKoinModules(listOf())
    }

    override fun getKoin(): Koin = koinApplication.koin
r
I’m following this one at the moment: https://stackoverflow.com/a/56352142/1476228 Looks like a similar idea. Thanks for the answer!
It’s not working yet 🙂 but I’ll keep trying