1 Star 0 Fork 0

Pure-iOS/RxSwift

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Package.swift 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
freak4pc 提交于 2019-09-26 23:37 . Bump minimum Swift version to 5.1
// swift-tools-version:5.1
import PackageDescription
let buildTests = false
extension Product {
static func allTests() -> [Product] {
if buildTests {
return [.executable(name: "AllTestz", targets: ["AllTestz"])]
} else {
return []
}
}
}
extension Target {
static func rxCocoa() -> [Target] {
#if os(Linux)
return [.target(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay"])]
#else
return [.target(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay", "RxCocoaRuntime"])]
#endif
}
static func rxCocoaRuntime() -> [Target] {
#if os(Linux)
return []
#else
return [.target(name: "RxCocoaRuntime", dependencies: ["RxSwift"])]
#endif
}
static func allTests() -> [Target] {
if buildTests {
return [.target(name: "AllTestz", dependencies: ["RxSwift", "RxCocoa", "RxBlocking", "RxTest"])]
} else {
return []
}
}
}
let package = Package(
name: "RxSwift",
products: ([
[
.library(name: "RxSwift", targets: ["RxSwift"]),
.library(name: "RxCocoa", targets: ["RxCocoa"]),
.library(name: "RxRelay", targets: ["RxRelay"]),
.library(name: "RxBlocking", targets: ["RxBlocking"]),
.library(name: "RxTest", targets: ["RxTest"]),
],
Product.allTests()
] as [[Product]]).flatMap { $0 },
targets: ([
[
.target(name: "RxSwift", dependencies: []),
],
Target.rxCocoa(),
Target.rxCocoaRuntime(),
[
.target(name: "RxRelay", dependencies: ["RxSwift"]),
.target(name: "RxBlocking", dependencies: ["RxSwift"]),
.target(name: "RxTest", dependencies: ["RxSwift"]),
],
Target.allTests()
] as [[Target]]).flatMap { $0 },
swiftLanguageVersions: [.v5]
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pure-iOS/RxSwift.git
[email protected]:pure-iOS/RxSwift.git
pure-iOS
RxSwift
RxSwift
main

搜索帮助