Hi, I would like to know if it would be possible t...
# android
m
Hi, I would like to know if it would be possible to use two DI frameworks in one android project, main app with dagger2 and one library with koin, and also would there be issues ? anyone has experience ? Thank you.
j
library project should not be exposing Koin, so the app project should be doing nothing with Koin, if not, probably you have a wrong design
☝️ 1
🆗 1
m
It doesnt matter which DI framework the library used. You should be able to inject things based on the framework chosen for the app. Is that correct ?
j
It is strange a library needs things of being injected by a framework
3
Just pass the necessary things as parameters
or use a builder pattern like a lot of libraries does
m
Ok.