forked from netcosports/Astrolabe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
41 lines (38 loc) · 1.42 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
// swift-tools-version:5.0
import PackageDescription
extension Target {
static func astrolabe() -> Target {
#if os(tvOS)
return .target(name: "Astrolabe",
dependencies: ["RxSwift", "RxCocoa"],
path: "./Sources/Core",
exclude: [
"./Sources/Core/CollectionViewReusedPagerSource.swift",
"./Sources/Core/CollectionViewPagerSource.swift",
"./Sources/Core/ReusedPagerCollectionViewCell.swift",
"./Sources/Core/PagerCollectionViewCell.swift"
])
#else
return .target(name: "Astrolabe", dependencies: ["RxSwift", "RxCocoa"], path: "./Sources/Core")
#endif
}
}
let package = Package(
name: "Astrolabe",
platforms: [
.iOS(.v9), .tvOS(.v9)
],
products: [
.library(name: "Astrolabe", targets: ["Astrolabe"]),
.library(name: "AstrolabeLoaders", targets: ["AstrolabeLoaders"])
],
dependencies: [
.package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "5.0.1")),
.package(url: "https://github.com/netcosports/Gnomon.git", .upToNextMajor(from: "5.1.1"))
],
targets: [
Target.astrolabe(),
.target(name: "AstrolabeLoaders", dependencies: ["Astrolabe", "Gnomon", "RxSwift"], path: "./Sources/Loaders")
],
swiftLanguageVersions: [.v5]
)