Skip to content

Commit

Permalink
Merge pull request #2 from Recouse/visionos-support
Browse files Browse the repository at this point in the history
visionOS support
  • Loading branch information
Recouse authored Feb 3, 2024
2 parents 175426e + 531677a commit e928d98
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

Expand All @@ -12,7 +11,6 @@ let package = Package(
.watchOS("6.0")
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "OpenAI",
targets: ["OpenAI"]
Expand All @@ -22,8 +20,6 @@ let package = Package(
.package(url: "https://github.com/Recouse/EventSource.git", from: "0.0.7")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "OpenAI",
dependencies: [
Expand Down
35 changes: 35 additions & 0 deletions Package@swift-5.9.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// swift-tools-version: 5.9

import PackageDescription

let package = Package(
name: "OpenAI",
platforms: [
.macOS("10.15"),
.iOS("13.0"),
.tvOS("13.0"),
.watchOS("6.0"),
.visionOS("1.0")
],
products: [
.library(
name: "OpenAI",
targets: ["OpenAI"]
)
],
dependencies: [
.package(url: "https://github.com/Recouse/EventSource.git", from: "0.0.7")
],
targets: [
.target(
name: "OpenAI",
dependencies: [
.product(name: "EventSource", package: "EventSource")
]
),
.testTarget(
name: "OpenAITests",
dependencies: ["OpenAI"]
)
]
)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ for try await chunk in chat {
* iOS 13.0+
* tvOS 13.0+
* watchOS 6.0+
* visionOS 1.0+

## Dependencies

Expand Down

0 comments on commit e928d98

Please sign in to comment.