Some cleanup:

- Remove unnecessary `GlobalScope`.
- Rename `Component` to `Graph`, `DaggerComponentOwner` to `DependencyInjectionGraphOwner`.
- Rename component builders to factories, where necessary.
This commit is contained in:
Jorge Martín
2025-09-01 16:11:10 +02:00
parent 36bca71a46
commit 2907cef47e
20 changed files with 99 additions and 127 deletions

View File

@@ -8,10 +8,10 @@
package io.element.android.libraries.di
/**
* A [DaggerComponentOwner] is anything that "owns" a Dagger Component.
* A [DependencyInjectionGraphOwner] is anything that "owns" a DI Graph.
*
*/
interface DaggerComponentOwner {
/** This is either a component, or a list of components. */
val daggerComponent: Any
interface DependencyInjectionGraphOwner {
/** This is either a graph, or a list of graphs. */
val graph: Any
}