mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Centralise the DI code generation logic (#3562)
* Create Anvil extension helper * Use the helper everywhere
This commit is contained in:
committed by
GitHub
parent
a9b45a2f57
commit
eeec7cc785
@@ -8,11 +8,10 @@
|
||||
@file:Suppress("UnstableApiUsage")
|
||||
|
||||
import extension.allFeaturesApi
|
||||
import extension.setupAnvil
|
||||
|
||||
plugins {
|
||||
id("io.element.android-compose-library")
|
||||
alias(libs.plugins.anvil)
|
||||
alias(libs.plugins.kapt)
|
||||
id("kotlin-parcelize")
|
||||
}
|
||||
|
||||
@@ -20,12 +19,9 @@ android {
|
||||
namespace = "io.element.android.appnav"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(projects.anvilannotations)
|
||||
anvil(projects.anvilcodegen)
|
||||
implementation(libs.dagger)
|
||||
kapt(libs.dagger.compiler)
|
||||
setupAnvil()
|
||||
|
||||
dependencies {
|
||||
allFeaturesApi(rootDir, logger)
|
||||
|
||||
implementation(projects.libraries.core)
|
||||
|
||||
Reference in New Issue
Block a user