URLBlueprints 是一个多平台工具,用于处理和路由深链接。它允许定义和注册蓝图,作为深链接匹配的模板。
要求
开发
项目使用以下工具进行开发
安装
要开始使用 URLBlueprints,您首先需要决定如何将其集成到项目中。URLBlueprints 支持以下工具
Cocoapods
使用 Cocoapods 安装 URLBlueprints 的步骤如下
- 在您的 Podfile 中添加以下条目
pod 'URLBlueprints'
- 然后运行
pod install
。
Carthage
要使用 Carthage 安装 URLBlueprints,请按照以下步骤操作:
- 将以下条目添加到您的 Cartfile
github "lewandowskit93/URLBlueprints"
- 然后运行
carthage update
Swift 包管理器
要使用 Swift 包管理器 安装 URLBlueprints,请按照以下步骤操作:
- 在您的 Package.swift 中添加以下包依赖
.package(url: "https://github.com/lewandowskit93/URLBlueprints.git", from: "0.0.3")
- 在您的 Package.swift 中添加以下目标依赖
dependencies: ["URLBlueprints"]
例如,它可以看起来像这样
import PackageDescription
let package = Package(
name: "YourLibrary",
products: [
.library(
name: "YourLibrary",
targets: ["YourLibrary"])
],
dependencies: [
.package(url: "https://github.com/lewandowskit93/URLBlueprints.git", from: "0.0.3")
],
targets: [
.target(
name: "YourLibrary",
dependencies: ["URLBlueprints"])
]
)
概述
以下是 URLBlueprints 中使用的功能性和概念的简要概述。
示例
更多详细示例请查看源代码。
贡献
该项目由 Tomasz Lewandowski 创建和维护。
如果您创建了新功能或修复了错误,可以提交 pull request。如果您有任何功能建议,请随时提交。
许可
URLBlueprints是在MIT许可证下发布的。有关更多信息,请参阅License.md。