workflow-kotlin icon indicating copy to clipboard operation
workflow-kotlin copied to clipboard

Create workflow-ui/core module.

Open MilanJovic92 opened this issue 1 year ago • 4 comments
trafficstars

Create workflow-ui-core KMP module. Copied implementation from workflow-ui-core-common to the new module.

MilanJovic92 avatar Feb 17 '24 18:02 MilanJovic92

@MilanJovic92 can you give more context on why we should do this or what it accomplishes? Can you link this to an issue?

steve-the-edwards avatar Feb 28 '24 16:02 steve-the-edwards

@MilanJovic92 can you give more context on why we should do this or what it accomplishes? Can you link this to an issue?

@steve-the-edwards Of course. This PR copies everything from workflow-ui-core-common module which publishes the JVM library to the new module workflow-ui-core that will publish the KMP package.

The idea is to enable the creation of Screen and other helpful UI elements inside KMP projects that use workflow-core.

I haven't found the Issue for this, but I can create one if it's necessary.

After and if this PR gets merged, the old workflow-ui-core-common should be deleted.

MilanJovic92 avatar Feb 28 '24 17:02 MilanJovic92

I was able to get Workflow working in my KMP project by making these changes as well as pulling in all of the classes from workflow-ui:compose and deleting ViewEnvironmentWithComposeSupport.kt along with a few other Android only functions. I'm sure there's more support needed per platform but Workflow would be great as a multiplatform option since the alternatives aren't nearly as good.

blakelee avatar May 30 '24 03:05 blakelee

@blakelee That's exactly what I tried to achieve with this PR. I would love to see Workflow with full-fledged support of KMP.

MilanJovic92 avatar Jun 11 '24 07:06 MilanJovic92