What is the best practice in handling koin modules in multimodule project? I ‘ve come up with solution that each module will provide list od modules that he wants to load to the whole graph and in the top level App module I will gather all of these and put them inside loadKoinModules function but maybe there is something better?
david.bilik
06/11/2019, 7:01 AM
interesting .. I have a small problem with calling
injectFeature
in a screen. It seems wrong but I dont know where else to put it
s
sanogueralorenzo
06/11/2019, 5:01 PM
What problem?
d
david.bilik
06/11/2019, 9:47 PM
That I bloat my Fragment, which should know anything about how stuff are injected there, with some injectFeature logic. Something like static initializer from java would be suitable for feature load but unofrtunately there is nothing like that in Kotlin