Centralise the DI code generation logic (#3562)
* Create Anvil extension helper * Use the helper everywhere
This commit is contained in:
parent
3ee686f250
commit
2efdb3ae45
77 changed files with 327 additions and 447 deletions
|
|
@ -7,9 +7,10 @@
|
|||
|
||||
@file:Suppress("UnstableApiUsage")
|
||||
|
||||
import extension.setupAnvil
|
||||
|
||||
plugins {
|
||||
id("io.element.android-library")
|
||||
alias(libs.plugins.anvil)
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
@ -55,9 +56,7 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
anvil {
|
||||
generateDaggerFactories.set(true)
|
||||
}
|
||||
setupAnvil()
|
||||
|
||||
dependencies {
|
||||
implementation(libs.dagger)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue