File tree Expand file tree Collapse file tree 2 files changed +35
-4
lines changed Expand file tree Collapse file tree 2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 1
1
// swift-tools-version: 5.7
2
- // The swift-tools-version declares the minimum version of Swift required to build this package.
3
2
4
3
import PackageDescription
5
4
@@ -12,7 +11,6 @@ let package = Package(
12
11
. watchOS( " 6.0 " )
13
12
] ,
14
13
products: [
15
- // Products define the executables and libraries a package produces, and make them visible to other packages.
16
14
. library(
17
15
name: " OpenAI " ,
18
16
targets: [ " OpenAI " ]
@@ -22,8 +20,6 @@ let package = Package(
22
20
. package ( url: " https://github.com/Recouse/EventSource.git " , from: " 0.0.7 " )
23
21
] ,
24
22
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.
27
23
. target(
28
24
name: " OpenAI " ,
29
25
dependencies: [
Original file line number Diff line number Diff line change
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
+ )
You can’t perform that action at this time.
0 commit comments