workflow-kotlin
workflow-kotlin copied to clipboard
A Swift and Kotlin library for making composable state machines, and UIs driven by those state machines.
From a long discussion w/ @RBusarow How about this: ```kotlin sealed interface Screen @WorkflowUiExperimentalApi interface Screen_2 : Screen @WorkflowUiExperimentalApi class EnvironmentScreen @PublishedApi internal constructor( public val screen: V, public val...
There are three copies of this fragment floating around: ```kotlin val parentRegistryOwner = stateRegistryOwnerFromViewTreeOrContext(this) val key = Compatible.keyFor(this.getRendering()!!) viewStateCache.attachToParentRegistryOwner(key, parentRegistryOwner) ``` Add an overload of `WorkflowSavedStateRegistryAggregator.attachToParentRegistryOwner` that takes a `View`...
_Originally posted by @zach-klippenstein in https://github.com/square/workflow/pull/874#issuecomment-574342417_
I've changed ":samples:compose-samples" & ":samples:tutorial" to play with BackStackScreen, ComposeRendering & LayoutRunners. The code producing this bug isn't really noteworthy. The whole Activity is driven with a WorkflowLayout and the...
Reported by @pyricau: At the moment we are only checking for leaks after the activity is destroyed, which means there is a huge window we're missing. We should check before...
Right now there is no easy way to expect that some particular worker is not running during the given render step. There is a workaround to use `requireExplicitWorkerExpectations`, but it...
Hello everyone! Perhaps the question is not to the address, but I still ask. I am implemented by simple workflow authorization on a server with via login and password. I...
Need to be thoughtful about rolling it out, though, since we'd change semantics on existing tests pretty drastically. Maybe that's fine?
The latest version for Compose is `1.1.0-rc01` and supports Kotlin 1.6.0. Google released a specific compiler plugin version `1.1.0-rc02` to support Kotlin 1.6.10. The Workflow repository is using the two...
```swift // This is the fundamental API. // rendered method here requires output type to be Action let result = MyWorkflow() .mapOutput { … } .rendered(with: context, key: “key”) //...