Skip to content

Commit

Permalink
Removed rootComponentContext builder functions
Browse files Browse the repository at this point in the history
  • Loading branch information
arkivanov committed Sep 24, 2020
1 parent 861400d commit f610aef
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ fun <T, C> T.rootComponent(
): C where T : SavedStateRegistryOwner, T : OnBackPressedDispatcherOwner, T : ViewModelStoreOwner, T : LifecycleOwner =
rootComponent(savedStateRegistry, viewModelStore, onBackPressedDispatcher, (this as LifecycleOwner).lifecycle, factory)

fun rootComponentContext(
savedStateRegistry: SavedStateRegistry,
viewModelStore: ViewModelStore,
onBackPressedDispatcher: OnBackPressedDispatcher,
lifecycle: AndroidLifecycle
): ComponentContext =
rootComponentContext(savedStateRegistry, viewModelStore, onBackPressedDispatcher, lifecycle.asDecomposeLifecycle())

fun <T> T.rootComponentContext(
): ComponentContext where T : SavedStateRegistryOwner, T : OnBackPressedDispatcherOwner, T : ViewModelStoreOwner, T : LifecycleOwner =
rootComponentContext(savedStateRegistry, viewModelStore, onBackPressedDispatcher, (this as LifecycleOwner).lifecycle)

private fun rootComponentContext(
savedStateRegistry: SavedStateRegistry,
viewModelStore: ViewModelStore,
Expand Down

0 comments on commit f610aef

Please sign in to comment.