Add option to disable generating dagger factories for specific source sets #718
Labels
dagger factory
Happens when generateDaggerFactories is set to true
enhancement
New feature or request
We have an use case where we want to use anvil only (with
generateDaggerFactories = true
) inside main source set of a module. However, inside instrumented tests, we want to run full Dagger to generate components for integration tests (kaptAndroidTest("com.google.dagger:dagger-compiler")
dependency declaration).Anvil does not seem to support this configuration:
generateDaggerFactories
is enabled and Dagger must not coexist and that generating dagger factories should be disabledMaybe it would be a good idea to add a per-source-set dagger factory generation toggle instead of one global toggle?
The text was updated successfully, but these errors were encountered: