You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 5, 2021. It is now read-only.
Renames ComposeViewFactoryRoot to CompositionRoot and decouples the implementation.
The root is now applied via a `ViewRegistry` wrapper that wraps individual factories
to apply the root, instead of having this logic hard-coded inside `ComposeViewFactory`.
This approach is more flexible in general (could be used to do other tricks), and decouples
the rooting feature from the rest of the code.
Copy file name to clipboardExpand all lines: core-compose/api/core-compose.api
+6-18Lines changed: 6 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -15,24 +15,6 @@ public final class com/squareup/workflow/ui/compose/ComposeViewFactory : com/squ
15
15
public fun getType ()Lkotlin/reflect/KClass;
16
16
}
17
17
18
-
public abstract interface class com/squareup/workflow/ui/compose/ComposeViewFactoryRoot {
19
-
public static final field Companion Lcom/squareup/workflow/ui/compose/ComposeViewFactoryRoot$Companion;
20
-
public static fun <clinit> ()V
21
-
public abstract fun wrap (Lkotlin/jvm/functions/Function1;Landroidx/compose/Composer;)V
22
-
}
23
-
24
-
public final class com/squareup/workflow/ui/compose/ComposeViewFactoryRoot$Companion : com/squareup/workflow/ui/ViewEnvironmentKey {
25
-
public static final fun <clinit> ()V
26
-
public fun getDefault ()Lcom/squareup/workflow/ui/compose/ComposeViewFactoryRoot;
27
-
public synthetic fun getDefault ()Ljava/lang/Object;
28
-
}
29
-
30
-
public final class com/squareup/workflow/ui/compose/ComposeViewFactoryRootKt {
31
-
public static final fun <clinit> ()V
32
-
public static final fun ComposeViewFactoryRoot (Lkotlin/jvm/functions/Function2;)Lcom/squareup/workflow/ui/compose/ComposeViewFactoryRoot;
33
-
public static final fun withComposeViewFactoryRoot (Lcom/squareup/workflow/ui/ViewEnvironment;Lkotlin/jvm/functions/Function2;)Lcom/squareup/workflow/ui/ViewEnvironment;
34
-
}
35
-
36
18
public abstract class com/squareup/workflow/ui/compose/ComposeWorkflow : com/squareup/workflow/Workflow {
37
19
public fun <init> ()V
38
20
public fun asStatefulWorkflow ()Lcom/squareup/workflow/StatefulWorkflow;
@@ -43,6 +25,12 @@ public final class com/squareup/workflow/ui/compose/ComposeWorkflowKt {
43
25
public static final fun composed (Lcom/squareup/workflow/Workflow$Companion;Lkotlin/jvm/functions/Function4;)Lcom/squareup/workflow/ui/compose/ComposeWorkflow;
44
26
}
45
27
28
+
public final class com/squareup/workflow/ui/compose/CompositionRootKt {
29
+
public static final fun <clinit> ()V
30
+
public static final fun withCompositionRoot (Lcom/squareup/workflow/ui/ViewEnvironment;Lkotlin/jvm/functions/Function2;)Lcom/squareup/workflow/ui/ViewEnvironment;
31
+
public static final fun withCompositionRoot (Lcom/squareup/workflow/ui/ViewRegistry;Lkotlin/jvm/functions/Function2;)Lcom/squareup/workflow/ui/ViewRegistry;
32
+
}
33
+
46
34
public final class com/squareup/workflow/ui/compose/ViewEnvironmentsKt {
47
35
public static final fun WorkflowRendering (Ljava/lang/Object;Lcom/squareup/workflow/ui/ViewEnvironment;Landroidx/ui/core/Modifier;Landroidx/compose/Composer;)V
48
36
public static synthetic fun WorkflowRendering$default (Ljava/lang/Object;Lcom/squareup/workflow/ui/ViewEnvironment;Landroidx/ui/core/Modifier;Landroidx/compose/Composer;ILjava/lang/Object;)V
0 commit comments