@@ -27,14 +27,12 @@ import com.badoo.ribs.routing.transition.handler.TransitionHandler
27
27
import com.badoo.ribs.rx3.workflows.RxWorkflowActivity
28
28
import com.badoo.ribs.sandbox.BuildConfig
29
29
import com.badoo.ribs.sandbox.R
30
- import com.badoo.ribs.sandbox.rib.hello_world.HelloWorld
31
30
import com.badoo.ribs.sandbox.rib.switcher.Switcher
32
31
import com.badoo.ribs.sandbox.rib.switcher.SwitcherBuilder
33
32
import com.badoo.ribs.sandbox.util.CoffeeMachine
34
33
import com.badoo.ribs.sandbox.util.StupidCoffeeMachine
35
34
import io.reactivex.rxjava3.core.Observable
36
35
import io.reactivex.rxjava3.core.Single
37
- import io.reactivex.rxjava3.functions.BiFunction
38
36
import leakcanary.AppWatcher
39
37
40
38
/* * The sample app's single activity */
@@ -85,18 +83,18 @@ class RootActivity : RxWorkflowActivity() {
85
83
}
86
84
).build(
87
85
root(
88
- savedInstanceState = savedInstanceState,
89
- customisations = AppRibCustomisations ,
90
- defaultPlugins = { node ->
91
- if (BuildConfig .DEBUG ) {
92
- listOfNotNull(
93
- createLeakDetector(),
94
- createLogger(),
95
- if (node.isRoot) createDebugControlHost() else null
96
- )
97
- } else emptyList()
98
- }
99
- )).also {
86
+ savedInstanceState = savedInstanceState,
87
+ customisations = AppRibCustomisations ,
88
+ defaultPlugins = { node ->
89
+ if (BuildConfig .DEBUG ) {
90
+ listOfNotNull(
91
+ createLeakDetector(),
92
+ createLogger(),
93
+ if (node.isRoot) createDebugControlHost() else null
94
+ )
95
+ } else emptyList()
96
+ }
97
+ )).also {
100
98
workflowRoot = it
101
99
}
102
100
0 commit comments