workflow

A library for making composable state machines, and UIs driven by those state machines.

Github星跟踪图

workflow

GitHub license
CocoaPods compatible
Maven Central

A unidirectional data flow library for Kotlin and Swift, emphasizing:

  • Strong support for state-machine driven UI and navigation.
  • Composition and scaling.
  • Effortless separation of business and UI concerns.

This project is currently experimental and the API subject to breaking changes without notice.
Follow Square's engineering blog, The Corner, to see when
this project becomes stable.

While the API is not yet stable, this code is in heavy production use in Android and iOS
apps with millions of users.

Using Workflows in your project

Swift

Swift Package Manager

SwiftPM compatible

If you are developing your own package, be sure that Workflow is included in dependencies
in Package.swift:

dependencies: [
    .package(url: "git@github.com:square/workflow.git", from: "0.21.1")
]

In Xcode 11+, add Workflow directly as a dependency to your project with
File > Swift Packages > Add Package Dependency.... Provide the git URL when prompted: git@github.com:square/workflow.git.

Cocoapods

CocoaPods compatible

If you use CocoaPods to manage your dependencies, simply add Workflow and WorkflowUI to your
Podfile:

pod 'Workflow'
pod 'WorkflowUI'

Kotlin

Maven Central

Quick Start

To get started with a fresh, barebones, Workflow-based Android app, we've created a template
repository – just click "Use this template" to create a new repository with a simple but runnable
app: github.com/square/workflow-android-template

Maven Artifacts

Artifacts are hosted on Maven Central. If you're using Gradle, ensure mavenCentral() appears in
your repositories block, and then add dependencies on the following artifacts:

Lower-level Artifacts

Most code shouldn't need to depend on these directly. They should generally only be used to build
higher-level integrations with UI frameworks.

Resources

Support & Contact

Workflow maintainers hang out in the #squarelibraries
channel on the Kotlin Slack
and the #square-libraries-wtf channel on
the Android Study Group Slack.

Releasing and Deploying

See RELEASING.md.

License

主要指标

概览
名称与所有者square/workflow
主编程语言Shell
编程语言Ruby (语言数: 2)
平台
许可证Apache License 2.0
所有者活动
创建于2018-11-16 02:16:30
推送于2025-06-04 18:46:37
最后一次提交
发布数56
最新版本名称v0.28.1 (发布于 )
第一版名称v0.1.0 (发布于 )
用户参与
星数1.1k
关注者数40
派生数69
提交数1.8k
已启用问题?
问题数334
打开的问题数9
拉请求数729
打开的拉请求数0
关闭的拉请求数128
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?