Add test on DefaultSpaceEntryPoint
This commit is contained in:
parent
ba51b29d23
commit
a69cf58a5b
5 changed files with 115 additions and 4 deletions
|
|
@ -11,6 +11,6 @@ import com.bumble.appyx.core.modality.BuildContext
|
|||
import com.bumble.appyx.core.node.Node
|
||||
import com.bumble.appyx.core.plugin.Plugin
|
||||
|
||||
interface AssistedNodeFactory<NODE : Node> {
|
||||
fun interface AssistedNodeFactory<NODE : Node> {
|
||||
fun create(buildContext: BuildContext, plugins: List<Plugin>): NODE
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,8 +46,7 @@ inline fun <reified N : Node> NodeFactoriesBindings.createNode(
|
|||
return node as N
|
||||
}
|
||||
|
||||
// @BindingContainer
|
||||
interface NodeFactoriesBindings {
|
||||
fun interface NodeFactoriesBindings {
|
||||
@Multibinds
|
||||
fun nodeFactories(): Map<KClass<out Node>, AssistedNodeFactory<*>>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue