ContributesTo
Contributes the annotated interface to the given scope. This is only applicable to interfaces. The downstream merged graph of the same scope will extend this interface in its implementation.
@ContributesTo(AppScope::class)
interface SomeDependencies {
val httpClient: HttpClient
}
// Later graph will extend it automatically
@DependencyGraph(AppScope::class)
interface AppGraph
Content copied to clipboard