Skip to content

Conversation

zach-klippenstein
Copy link
Collaborator

The only such data classes were WorkflowTestParams and RenderingAndSnapshot.
The former has no need to be a data class, as it's just passed as configuration
to the test function, and the latter is effectively just an alias for Pair and
the shape is fundamental to the workflow runtime design so it won't change.

There are still some data classes in the UI modules, but #55 will mark all those
as ExperimentalWorkflowApi before releasing 1.0.0.

Fixes #57.

The only such data classes were `WorkflowTestParams` and `RenderingAndSnapshot`.
The former has no need to be a data class, as it's just passed as configuration
to the test function, and the latter is effectively just an alias for `Pair` and
the shape is fundamental to the workflow runtime design so it won't change.

There are still some data classes in the UI modules, but #55 will mark all those
as `ExperimentalWorkflowApi` before releasing 1.0.0.

Fixes #57.
@zach-klippenstein zach-klippenstein added this to the v1.0.0 milestone Jun 28, 2020
@zach-klippenstein zach-klippenstein requested a review from a team as a code owner June 28, 2020 16:26
Copy link
Collaborator

@rjrjr rjrjr left a comment

Choose a reason for hiding this comment

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

Thought there would be more of these.

@zach-klippenstein zach-klippenstein merged commit 6d07d7d into main Jun 28, 2020
@zach-klippenstein zach-klippenstein deleted the zachklipp/remove-data-classes branch June 28, 2020 17:39
@zach-klippenstein
Copy link
Collaborator Author

I've been carefully to avoid introducing new ones, and most of our public APIs are just interfaces anyway.

zach-klippenstein added a commit that referenced this pull request Feb 4, 2021
Upgrade AGP, Gradle, Compose, and Kotlin versions
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.

Either remove data classes, or make them not data classes
2 participants