一个用于 Swift 和 Kotlin 的单向数据流库,强调
此项目目前正在开发中,API 可能会在没有通知的情况下进行重大更改。请关注 Square 的工程博客 The Corner,以了解此项目何时变得稳定。
虽然 API 尚未稳定,但此代码已在 Android 和 iOS 应用中大量使用,拥有数百万用户。
如果您正在开发自己的软件包,请确保 Workflow 包含在 Package.swift
的 dependencies
中
dependencies: [
.package(url: "https://github.com/square/workflow-swift", from: "3.11.0")
]
在 Xcode 11+ 中,使用 File
> Swift Packages
> Add Package Dependency...
将 Workflow 直接作为依赖项添加到您的项目中。出现提示时提供 git URL:git@github.com:square/workflow-swift.git
。
本项目使用 Mise 和 Tuist 来生成用于本地开发的项目。 请按照以下步骤进行 zsh 的推荐设置。
# install mise
brew install mise
# add mise activation line to your zshrc
echo 'eval "$(mise activate zsh)"' >> ~/.zshrc
# load mise into your shell
source ~/.zshrc
# install dependencies
mise install
# only necessary for first setup or after changing dependencies
tuist install --path Samples
# generates and opens the Xcode project
tuist generate --path Samples
请参阅 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.