Skip to content

Commit c484b86

Browse files
author
Oleksandr Glagoliev
committed
Improve Package.swift
- Add supported platforms - Add path to avoid demo apps to be packaged
1 parent 7f186c4 commit c484b86

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

Package.swift

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,28 @@ import PackageDescription
55

66
let package = Package(
77
name: "FortunesAlgorithm",
8+
platforms: [
9+
.macOS(.v10_12),
10+
.iOS(.v10),
11+
.tvOS(.v10),
12+
.watchOS(.v3)
13+
],
814
products: [
9-
// Products define the executables and libraries produced by a package, and make them visible to other packages.
1015
.library(
1116
name: "FortunesAlgorithm",
12-
targets: ["FortunesAlgorithm"]),
13-
],
14-
dependencies: [
15-
// Dependencies declare other packages that this package depends on.
16-
// .package(url: /* package url */, from: "1.0.0"),
17+
targets: ["FortunesAlgorithm"]
18+
),
1719
],
1820
targets: [
19-
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20-
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
2121
.target(
2222
name: "FortunesAlgorithm",
23-
dependencies: []),
23+
path: "Sources"
24+
),
2425
.testTarget(
2526
name: "FortunesAlgorithmTests",
26-
dependencies: ["FortunesAlgorithm"]),
27+
dependencies: ["FortunesAlgorithm"]
28+
),
2729
]
2830
)
31+
32+

0 commit comments

Comments
 (0)