Centralise the DI code generation logic (#3562)

* Create Anvil extension helper

* Use the helper everywhere
This commit is contained in:
Jorge Martin Espinosa 2024-09-30 14:20:28 +02:00 committed by GitHub
parent a9b45a2f57
commit eeec7cc785
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
77 changed files with 327 additions and 447 deletions

View file

@ -1,3 +1,5 @@
import extension.setupAnvil
/*
* Copyright 2023, 2024 New Vector Ltd.
*
@ -6,7 +8,6 @@
*/
plugins {
id("io.element.android-library")
alias(libs.plugins.anvil)
}
android {
@ -17,13 +18,9 @@ android {
}
}
anvil {
generateDaggerFactories.set(true)
}
setupAnvil()
dependencies {
anvil(projects.anvilcodegen)
implementation(projects.anvilannotations)
implementation(projects.libraries.di)
implementation(projects.libraries.core)