I looked around in the documentation. Say I have a...
# koin
b
I looked around in the documentation. Say I have a bunch of gradle modules in my application each with their own koin annotations default modules, how can I rename the default module so that in my main gradle module I can add each individual one? It doesn’t seem like there’s a default that collects all the other defaults from other dependencies
a
I just export it from each module under a custom name.
b
I think that would work until I get to my topmost app gradle module which also has a defaultModule and would conflict. The only thing I can think of would be to ignore the default module at the top level and use a component scan to collect them all
a
As far as I know, the top app gradle module will collect default koin deps only within its package name. So to add all the modules from all other gradle modules you would need to plus them to the root module. What you want to do if i understand correctly is to define koin modules in top gradle module which will do a component scan on other gradle modules, its a way, never tried that, might work, but also might make the things a bit more coupled, duno.
Write back how it went :).
b
Not quite sure it can do what I want it to do quite yet
a
You could use @ComponentScan to help you retrieve components from a given package too