Skip to content

Commit 93ef70f

Browse files
committed
Add Package.swift specific for Swift 6
1 parent 0cd48e3 commit 93ef70f

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

Package@6.0.0.swift

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// swift-tools-version: 6.0
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: "ATCommonTools",
8+
platforms: [
9+
.iOS(.v14),
10+
.macOS(.v13),
11+
.tvOS(.v14),
12+
.visionOS(.v1),
13+
.watchOS(.v9)
14+
],
15+
products: [
16+
// Products define the executables and libraries a package produces, making them visible to other packages.
17+
.library(
18+
name: "ATCommonTools",
19+
targets: ["ATCommonTools"]),
20+
.library(
21+
name: "ATCommonWeb",
22+
targets: ["ATCommonWeb"])
23+
],
24+
dependencies: [
25+
.package(url: "https://github.com/ATProtoKit/MultiformatsKit.git", .upToNextMajor(from: "0.0.1"))
26+
],
27+
targets: [
28+
// Targets are the basic building blocks of a package, defining a module or a test suite.
29+
// Targets can depend on other targets in this package and products from dependencies.
30+
.target(
31+
name: "ATCommonTools",
32+
dependencies: [
33+
"ATCommonWeb",
34+
.product(name: "MultiformatsKit", package: "multiformatskit")
35+
]
36+
),
37+
.target(
38+
name: "ATCommonWeb",
39+
dependencies: [
40+
.product(name: "MultiformatsKit", package: "multiformatskit")
41+
]
42+
),
43+
.testTarget(
44+
name: "ATCommonToolsTests",
45+
dependencies: ["ATCommonTools", "ATCommonWeb"]
46+
),
47+
]
48+
)
49+

0 commit comments

Comments
 (0)