Use SimpleFeatureEntryPoint when possible.
This commit is contained in:
parent
574c2cb2b5
commit
1dd67ca945
10 changed files with 15 additions and 39 deletions
|
|
@ -18,7 +18,7 @@ import io.element.android.libraries.architecture.createNode
|
|||
@ContributesBinding(AppScope::class)
|
||||
@Inject
|
||||
class DefaultOpenSourcesLicensesEntryPoint : OpenSourceLicensesEntryPoint {
|
||||
override fun getNode(node: Node, buildContext: BuildContext): Node {
|
||||
return node.createNode<DependenciesFlowNode>(buildContext)
|
||||
override fun createNode(parentNode: Node, buildContext: BuildContext): Node {
|
||||
return parentNode.createNode<DependenciesFlowNode>(buildContext)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class DefaultOpenSourcesLicensesEntryPointTest {
|
|||
plugins = plugins,
|
||||
)
|
||||
}
|
||||
val result = entryPoint.getNode(parentNode, BuildContext.root(null))
|
||||
val result = entryPoint.createNode(parentNode, BuildContext.root(null))
|
||||
assertThat(result).isInstanceOf(DependenciesFlowNode::class.java)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue