Skip to content

Commit ac33aab

Browse files
committed
Added visionOS support
1 parent 175426e commit ac33aab

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

Package.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// swift-tools-version: 5.7
2-
// The swift-tools-version declares the minimum version of Swift required to build this package.
32

43
import PackageDescription
54

@@ -12,7 +11,6 @@ let package = Package(
1211
.watchOS("6.0")
1312
],
1413
products: [
15-
// Products define the executables and libraries a package produces, and make them visible to other packages.
1614
.library(
1715
name: "OpenAI",
1816
targets: ["OpenAI"]
@@ -22,8 +20,6 @@ let package = Package(
2220
.package(url: "https://github.com/Recouse/EventSource.git", from: "0.0.7")
2321
],
2422
targets: [
25-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
26-
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2723
.target(
2824
name: "OpenAI",
2925
dependencies: [

Package@swift-5.9.swift

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// swift-tools-version: 5.9
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "OpenAI",
7+
platforms: [
8+
.macOS("10.15"),
9+
.iOS("13.0"),
10+
.tvOS("13.0"),
11+
.watchOS("6.0"),
12+
.visionOS("1.0")
13+
],
14+
products: [
15+
.library(
16+
name: "OpenAI",
17+
targets: ["OpenAI"]
18+
)
19+
],
20+
dependencies: [
21+
.package(url: "https://github.com/Recouse/EventSource.git", from: "0.0.7")
22+
],
23+
targets: [
24+
.target(
25+
name: "OpenAI",
26+
dependencies: [
27+
.product(name: "EventSource", package: "EventSource")
28+
]
29+
),
30+
.testTarget(
31+
name: "OpenAITests",
32+
dependencies: ["OpenAI"]
33+
)
34+
]
35+
)

0 commit comments

Comments
 (0)