Joan Colmenero
06/03/2019, 2:45 PMDagger2
I had it divided by modules and I see this like a dirty way to do the dependency injection, is there any other way to do it cleaner?streetsofboston
06/03/2019, 2:49 PMval someModule = Kodein.Module("name") { ... }
. This keeps stuff nicely organizedstreetsofboston
06/03/2019, 2:51 PMJoan Colmenero
06/03/2019, 2:53 PMDagger2
I had a module for each feature, and inside of it I put the things that I need, like Repository
, Usecase
, etc... so I can create a class as I did before like ListModule
and then inside of it to the val listModule = Kodein.Module("name"){..}
?Joan Colmenero
06/03/2019, 2:53 PM@Module
or something to say that class is a module, right?streetsofboston
06/03/2019, 2:54 PMstreetsofboston
06/03/2019, 2:54 PMimport
(or `addImport`…..) them in your (main/top) Kodein objectromainbsl
06/03/2019, 4:31 PMromainbsl
06/03/2019, 4:32 PMromainbsl
06/03/2019, 4:33 PM