Skip to content

Commit 8731ef3

Browse files
authored
Added visionOS support to package @ 5.9 (#274)
1 parent 8523efb commit 8731ef3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Package@swift-5.9.swift

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// swift-tools-version:5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "Segment",
8+
platforms: [
9+
.macOS("10.15"),
10+
.iOS("13.0"),
11+
.tvOS("11.0"),
12+
.watchOS("7.1"),
13+
.visionOS("1.0")
14+
],
15+
products: [
16+
// Products define the executables and libraries a package produces, and make them visible to other packages.
17+
.library(
18+
name: "Segment",
19+
targets: ["Segment"]),
20+
],
21+
dependencies: [
22+
// Dependencies declare other packages that this package depends on.
23+
// .package(url: /* package url */, from: "1.0.0"),
24+
.package(url: "https://github.com/segmentio/sovran-swift.git", from: "1.1.0")
25+
],
26+
targets: [
27+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
28+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
29+
.target(
30+
name: "Segment",
31+
dependencies: [
32+
.product(name: "Sovran", package: "sovran-swift")
33+
]),
34+
.testTarget(
35+
name: "Segment-Tests",
36+
dependencies: ["Segment"]),
37+
]
38+
)

0 commit comments

Comments
 (0)