Closed Wottrich closed 1 year ago
closes #90
Create new navigation architecture to the application.
The new architecture is based on AppNavigator and use Koin bind to providers navigators into project modules.
class MyContextNavigator : SmartChecklistNavigation single { MyContextNavigator() } bind SmartChecklistNavigation::class class AppNavigator(private val navigators: List<SmartChecklistNavigation>) { fun buildNavigators(navGraphBuilder: NavGraphBuilder, navHostController: NavHostController) { navigators.forEach { it.startNavigation(navGraphBuilder, navHostController) } } } single { AppNavigator(getAll<SmartChecklistNavigation>()) }
Task
closes #90
Context
Create new navigation architecture to the application.
The new architecture is based on AppNavigator and use Koin bind to providers navigators into project modules.