DaggerHandler

abstract class DaggerHandler @Inject constructor(objects: ObjectFactory)(source)

Constructors

Link copied to clipboard
@Inject
constructor(objects: ObjectFactory)

Functions

Link copied to clipboard

By default, if kapt is enabled we will disable anvil component merging as an optimization as it incurs a cost of disabling incremental kapt stubs. If we need it though (aka this is running in app-di or another project that actually has components), this can be always enabled as needed.

Link copied to clipboard
fun anvilGenerators(vararg generators: ProjectDependency)

Dependencies for Anvil generators that should be added. These should be in the same form as they would be added to regular project dependencies.

Link copied to clipboard

Disables anvil. Should only be used for cases where anvil is explicitly not wanted, such as using Dagger KSP while Anvil doesn't support it.