Closed Lukas-Stuehrk closed 7 years ago
Thanks for the report! This is something I'd like to resolve soon. Since the "static-configure" branch its actually a lot easier now since one doesn't have to instantiate a module. I'll look into this soon I think
@Lukas-Stuehrk Added a fix 5989ef8cbab005cf00ec67370ad02ed0e490b87a as part of this pr https://github.com/square/Cleanse/pull/39
(need to port it to swift 3 branch though still)
ok, its on the swift-3 branch now
When you have two modules and both modules depend on another module, Cleanse will crash because the bindings for the third module are already bound.
I am using the version of the
swift-3
branch which uses the static configuration of #27.Minimal example:
This will fail with the following error:
Is there another way of using a module setup where the dependencies are like in my example? In my opinion it is a very common structure for applications where you have small, interchangeable components. As far as I know this is possible with dagger2 and the
@Module(includes=)
annotation.