Wizard: add module dependencies to UI

This commit is contained in:
Ilya Kirillov
2020-03-19 18:44:06 +03:00
parent cca4384371
commit 9435b386ce
7 changed files with 148 additions and 157 deletions
@@ -50,5 +50,8 @@ sealed class ModuleDependencyType(
fun getPossibleDependencyType(from: Module, to: Module): ModuleDependencyType? =
ALL.firstOrNull { it.accepts(from, to) }
fun isDependencyPossible(from: Module, to: Module): Boolean =
getPossibleDependencyType(from, to) != null
}
}