Skip to content

Commit ddf7619

Browse files
committed
Make Swift 6 tools version more generic and add support for Swift 5.9 to support Swift 5 mode
1 parent b4cdfa5 commit ddf7619

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.1
1+
// swift-tools-version: 6
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription

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+
// 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: "MultiPicker",
8+
platforms: [
9+
.iOS(.v16),
10+
.macOS(.v13),
11+
.watchOS(.v9)
12+
],
13+
products: [
14+
// Products define the executables and libraries a package produces, and make them visible to other packages.
15+
.library(
16+
name: "MultiPicker",
17+
targets: ["MultiPicker"]),
18+
],
19+
dependencies: [
20+
.package(url: "https://github.com/toastersocks/Helpers.git", from: "0.0.0"),
21+
.package(url: "https://github.com/toastersocks/Flow.git", from: "1.2.3"),
22+
// Dependencies declare other packages that this package depends on.
23+
// .package(url: /* package url */, from: "1.0.0"),
24+
],
25+
targets: [
26+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
27+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
28+
.target(
29+
name: "MultiPicker",
30+
dependencies: ["Helpers", "Flow"]),
31+
.testTarget(
32+
name: "MultiPickerTests",
33+
dependencies: ["MultiPicker"]),
34+
]
35+
)

0 commit comments

Comments
 (0)