[Architecture] experiments to remove DI graph managements from navigation flow nodes
This commit is contained in:
parent
2907189b61
commit
b9febcd8d7
10 changed files with 184 additions and 33 deletions
|
|
@ -25,11 +25,9 @@ import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
|
|||
import androidx.core.view.WindowCompat
|
||||
import com.bumble.appyx.core.integration.NodeHost
|
||||
import com.bumble.appyx.core.integrationpoint.NodeComponentActivity
|
||||
import io.element.android.x.di.AppBindings
|
||||
import io.element.android.libraries.architecture.bindings
|
||||
import io.element.android.libraries.architecture.createNode
|
||||
import io.element.android.libraries.designsystem.theme.ElementTheme
|
||||
import io.element.android.x.node.RootFlowNode
|
||||
import io.element.android.x.di.AppBindings
|
||||
|
||||
class MainActivity : NodeComponentActivity() {
|
||||
|
||||
|
|
@ -45,7 +43,7 @@ class MainActivity : NodeComponentActivity() {
|
|||
modifier = Modifier.fillMaxSize(),
|
||||
) {
|
||||
NodeHost(integrationPoint = appyxIntegrationPoint) {
|
||||
createNode<RootFlowNode>(it)
|
||||
MainNode(it, appBindings.mainDaggerComponentOwner())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue