Skip to content

Conversation

@steve-the-edwards
Copy link
Contributor

Now that we have a workflow-runtime-android module (and published artifact), it is the place that makes sense to hold the Android versions of renderWorkflowIn, as they are beyond solely UI concerns, so do not need to be in workflow-ui.

Yes, I recognize that we could distribute this as an Android library from the workflow-runtime KMP module with a particular sourceset as well as particular publishing.

I think that would be a good thing to do, but I don't want to figure out how to set that up right now. I think our balance of jvm, ios, and js artifacts from the KMP modules right now makes sense. I do not think we lose anything from this Android library being a standalone module (after all, it was before when it was in workflow-ui).

class PoetryModel(savedState: SavedStateHandle) : ViewModel() {
val renderings: Flow<Screen> by lazy {
renderWorkflowIn(
com.squareup.workflow1.android.renderWorkflowIn(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: You're already statically importing this, I think the FQN is just an IDE bug? Search-and-replace to fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@steve-the-edwards steve-the-edwards force-pushed the sedwards/move-render-android branch from 21e5929 to 3eac67c Compare July 2, 2025 20:24
@steve-the-edwards steve-the-edwards force-pushed the sedwards/move-render-2 branch from 95bf5b8 to 90af5aa Compare July 2, 2025 20:31
@steve-the-edwards steve-the-edwards force-pushed the sedwards/move-render-2 branch from 90af5aa to 225a91f Compare July 2, 2025 20:42
Base automatically changed from sedwards/move-render-android to main July 2, 2025 21:04
@steve-the-edwards steve-the-edwards merged commit 5cce681 into main Jul 2, 2025
44 checks passed
@steve-the-edwards steve-the-edwards deleted the sedwards/move-render-2 branch July 2, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants