在阅读匕首2的文档时,在构建应用程序进行测试时,找不到提供依赖关系的简单方法.我发现的唯一线索是:
Dagger 2 doesn’t support overrides. Modules that
override for simple testing fakes can create
a subclass of the module to emulate that behavIoUr.
Modules that use overrides and rely on dependency injection
should be decomposed so that the overridden modules are instead
represented as a choice between two modules.
我不明白如何在Android上设置这样的配置,任何人都可以解释一下?