Multi-layer / libraries architecture with dagger2: designing scopes, components, modules
问题 I'm using dagger 2 in a multi-layered , multi-library Android SDK project. I'm developing many different libraries on different layers (data, business logic, presentation etc...) and using dagger to glue them together. My most important requirement is that each library of the architecture should be usable stand-alone (with its dependent components) and that a developer should decide to build on top on any layer he wants: for example: rewrite all the presentation layer using everything below