Skip to content

Commit a1ab4af

Browse files
committed
ScreenViewFactoryFinder main error message mentions Compose.
Fixes the error message you see when missing a call to `ViewEnvironment.withComposeInteropSupport()`. A little odd since this module has no dependency on Compose, but the requirement is otherwise much too hard to discover.
1 parent de5eea1 commit a1ab4af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/ScreenViewFactoryFinder.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ public fun <ScreenT : Screen> ScreenViewFactoryFinder.requireViewFactoryForRende
9696
"${
9797
environment[ViewRegistry]
9898
.getEntryFor(Key(rendering::class, ScreenViewFactory::class))
99-
}."
99+
}. If this rendering is Compose based, you may be missing a call to " +
100+
"ViewEnvironment.withComposeInteropSupport() " +
101+
"from module com.squareup.workflow1:workflow-ui-compose at the top " +
102+
"of your Android view hierarchy."
100103
)
101104
}

0 commit comments

Comments
 (0)