Milestones
List view
### Motivation: The library needs a good starting point, and this seems as good as any. The sister library SwiftCurrent solved a problem we've identified in Android. Even with the new navigation component defining a workflow requires an abstraction that has to know about every possible future view. We prefer an abstraction that defines a linear workflow and find the composability of workflows to be preferable to other alternatives. ### Our Goal: We will define an API for creating composable linear workflows in Kotlin. This will feel natural and idiomatic to Android developers. It will also create a clear surface for dealing with errors and will be as type-safe as we can make it. ### Success Criteria: We know we are successful when: - There is a Kotlin DSL for defining composable linear workflows with Jetpack Compose - The API is type-safe, ensuring that the output of a workflow item matches the input of the next workflow item - The API exposes as many errors as possible at compile-time and drastically reduces runtime errors - Workflows do *not* keep track of their own view stack but rather delegate to the appropriate navigation in Android - Workflow items allow users to define an input and output type - Workflow items with correct input/output type pairs can easily be re-ordered - Workflows can be launched, which then delegates to Android navigation as if the user had written the boilerplate to do it themselves - Workflows can be abandoned, which generally means anything displayed is undone - Workflows follow a defined and expected behavior with the hardware back button - Workflows allow configuration; if you'd like to launch a screen modally, or in a nav stack, or any other native-feeling way, it's easy to do - Workflows are highly extensible and genericized - Workflows can finish with arguments - The README contains a clear value proposition for JetFlow with example code - The README contains a quick-start guide that shows people how to get started - The README links out to the generated docs for more info
No due date