Get rid of DependencyDiscovery in favor of DependencyGraphResolver

This commit is contained in:
Sergey Igushkin
2021-04-02 13:11:37 +03:00
parent d602470027
commit e7b81c52a7
3 changed files with 2 additions and 132 deletions
@@ -12,14 +12,6 @@ interface ModuleDependencyResolver {
fun resolveDependency(requestingModule: KotlinModule, moduleDependency: KotlinModuleDependency): KotlinModule?
}
// TODO merge with ModuleDependencyResolver?
// Semantically, they are close and may use shared caches and other shared state in the implementations
interface DependencyDiscovery {
// TODO return dependency graph rather than just iterable?
// TODO make this a partial function, too
fun discoverDependencies(fragment: KotlinModuleFragment): Iterable<KotlinModuleDependency>
}
interface KotlinDependencyGraphResolver {
// TODO add explicit dependency consistency scopes if we decide to keep non-production code in the same variant
fun resolveDependencyGraph(requestingModule: KotlinModule): DependencyGraphResolution