-
Notifications
You must be signed in to change notification settings - Fork 10
/
Package.swift
57 lines (52 loc) · 2.36 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Boomerang",
platforms: [
.iOS(.v11), .tvOS(.v11), .watchOS(.v6), .macOS(.v10_15)
],
products: [
.library(name: "Boomerang", targets: ["Boomerang"]),
.library(name: "Boomerang-Dynamic", type: .dynamic, targets: ["Boomerang"]),
.library(name: "RxBoomerang", targets: ["RxBoomerang"]),
.library(name: "RxBoomerang-Dynamic", type: .dynamic, targets: ["RxBoomerang"]),
.library(name: "RxBoomerangTest", targets: ["RxBoomerangTest"]),
.library(name: "RxBoomerangTest-Dynamic", type: .dynamic, targets: ["RxBoomerangTest"])
],
dependencies: [
.package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "6.0.0")),
.package(url: "https://github.com/RxSwiftCommunity/RxDataSources.git", .upToNextMajor(from: "5.0.0"))
],
targets: [
.target(
name: "Boomerang",
dependencies: [],
path: "Sources/Core",
linkerSettings: [.linkedFramework("UIKit",
.when(platforms: [.iOS, .tvOS]))]
),
.target(
name: "RxBoomerang",
dependencies: [ .byName(name: "Boomerang"),
.product(name: "RxSwift", package: "RxSwift"),
.product(name: "RxCocoa", package: "RxSwift"),
.product(name: "RxRelay", package: "RxSwift"),
.byName(name: "RxDataSources")],
path: "Sources/Rx"),
.target(
name: "RxBoomerangTest",
dependencies: [ .byName(name: "RxBoomerang"),
.product(name: "RxBlocking", package: "RxSwift")
],
path: "Sources/RxTest",
linkerSettings: [.linkedFramework("XCTest")]),
.testTarget(name: "BoomerangTests",
dependencies: [.byName(name: "Boomerang")]),
.testTarget(name: "RxBoomerangTests",
dependencies: [.byName(name: "RxBoomerang")]),
.testTarget(name: "RxBoomerangTestTests",
dependencies: [.byName(name: "RxBoomerangTest")])
],
swiftLanguageVersions: [.v5]
)