跳到内容

概览

GitHub license

Workflow 是一个应用框架,提供架构原语。

Workflow 是

  • 使用 Kotlin 和 Swift 编写,并用于 Kotlin 和 Swift
  • 一个单向数据流库,在每个工作流中使用不可变数据。数据从源流向 UI,事件从 UI 流向业务逻辑,两者都沿单一方向流动。
  • 一个支持将业务逻辑和复杂 UI 导航逻辑编写为状态机的库,从而能够自信地推理状态并验证其正确性。
  • 针对功能和屏幕的可组合性和可扩展性进行了优化。
  • 相应的 UI 框架,将用于“视图”(包括事件回调)的 Rendering 数据类绑定到 Android 和 iOS 的移动 UI 框架。
  • 相应的测试框架,有助于轻松编写所有应用程序业务逻辑的单元测试,并帮助确保正确性。

在项目中使用工作流

Swift

请参阅 square/workflow-swift 仓库。

Kotlin

请参阅 square/workflow-kotlin 仓库。

资源

支持与联系

Workflow 讨论在 Workflow 社区 Slack 中进行。请使用此公开邀请链接

Workflow 维护者也在 #squarelibraries 频道中的 Kotlin Slack 上交流。

发布与部署

请参阅 RELEASING.md

许可证

Copyright 2019 Square Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://apache.ac.cn/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.