伯克利
功能
-
ℹ️ 添加伯克利功能
示例
示例应用程序是查看 伯克利
的最佳方式。只需打开 Berkeley.xcodeproj
并运行 Example
方案。
安装
CocoaPods
伯克利可通过CocoaPods获取。要安装它,简单地将以下行添加到您的Podfile中
pod 'Berkeley'
Carthage
Carthage 是一个去中心化的依赖管理工具,可以构建您的依赖并为您提供二进制框架。
要使用 Carthage 将 Berkeley 集成到您的 Xcode 项目中,请在您的 Cartfile
中指定它。
github "Move Upwards/Berkeley"
运行 carthage update
构建框架并将构建后的 Berkeley.framework
拖动到您的 Xcode 项目中。
在您的应用程序目标的“构建期”设置选项卡中,点击“+”图标并选择“新运行脚本阶段”,然后添加如 Carthage 入门步骤 4、5 和 6 中提到的框架路径。
Swift 包管理器
要使用 Apple 的 Swift 包管理器 进行集成,请将以下内容添加到您的 Package.swift
依赖项中。
dependencies: [
.package(url: "[email protected]:MoveUpwards/Berkeley.git.git", from: "1.0.0")
]
手动
如果您不希望使用上述任何依赖项管理器,您可以手动将 Berkeley 集成到项目中。只需将 源
文件夹拖到您的 Xcode 项目中即可。
用法
贡献
非常欢迎贡献
许可协议
Berkeley
Copyright (c) 2019 Move Upwards [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.