Hi, I have been writing an sdk recently and I decided not to use Koin in the sdk as it would force users to use it as well and provide additional configuration. A similar issue is raised in this reddit post. Any thoughts on embedding Koin inside an sdk without forcing the host app to use it too?
j
Javier
05/16/2022, 7:50 AM
You can already do that with Koin.
Anyway I am not sure why you need to use a DI framework in a sdk which is monomodule and has no tests.
r
Rak
05/16/2022, 7:57 AM
Do what already? Also, the link was to highlight how the host app has to configure Koin, whether it has tests or not is irrelevant.
@Rak why do you need a DI framework in a monomodule project without tests?
It would facilitate integration testing, or in multimodule the setup itself, but being monomodule you can pass the implementations as default params in the constructors
r
Rak
05/16/2022, 8:09 AM
@Javier Its not my library, its just an example of a library requiring DI. However, I could absolutely see a complex library requiring DI.
Rak
05/16/2022, 8:09 AM
Managing an object graph with or without tests is made easier with a DI library