When using Koin Annotations 2.2.x This is the bas...
# koin
i
When using Koin Annotations 2.2.x This is the basic multi module setup, :app --> featurepresentation --> featuredomain <--impl-- featuredata
@KoinApplication
is available in
:app
module, (it looks for @Configuration in its direct child modules) Let's assume, I want to write
@Configuration("test")
in
:feature:data
module. (which needs to load only in tests.) This configuration is automatically loaded by
:app
module's
@KoinApplication(config... = ["test"])
????? I think, Currently, It is not. Can you help me?, Or any other workaround???
a
if you have a @Configuration("test") on some modules, you need your @KoinApplication to use it
@KoinApplication(configurations = ["default","test"])
to use both default and test configurations
default is the empty name also