Does anyone know if the workflow kt test library s...
# squarelibraries
d
Does anyone know if the workflow kt test library supports pure kotlin or multiplatform? I have an app built in multiplatform using workflow kt but can’t test it since last I checked the test library was only supported for the jvm target
z
It’s still a Java library
d
Will it ever be more? Ei multiplatform?
z
I’m not sure why it wasn’t converted with the rest, I’m not sure there’s any technical reason it couldn’t be. I suspect it was an oversight. Maybe @Stephen Edwards knows?
If you want to try to convert it and put up a PR, we’ll review.
d
I tried to do it, some Java lib things got in the way
Ill take a look but I’ll definitely need some help
I haven’t tried in several months
b
I was trying to convert it to KMP but I got held up with the parts that use reflection and scrapped it. I think parts of the testing area would need to be thought out differently for the platforms IIRC
z
ah yea, that rings a bell
d
Wait so @Zach Klippenstein (he/him) [MOD] can we use Workflow with compose in a KMP project now?
b
I didn’t know that. I had to fork it and move some stuff into a commonMain
d
b
It looks like it’s adding Compose to workflow-core which is KMP.
I had to fork all the stuff with ComposeScreen
d
Oh hell ya
b
Yeah workflow-ui/compose and workflow-ui/core-common are still Android only which I think would cause issues
d
ComposeWorkflow
is a new thing now - hadn't see that before
z
ComposeWorkflow
is for writing workflows using compose, doesn't have anything to do with the view layer
b
ah ok. ComposeWorkflow is using compose not compose-ui so we get access to all the compose optimizations and utilities from MutableState, and launched/disposable/side effects rather than using the previous render function for determining state. Is that right? ComposeScreen is separate and works with compose-ui to render views.
z
more or less, yea