Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
66 lines (64 loc) · 2.5 KB
/
Copy pathPackage.swift
File metadata and controls
66 lines (64 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// swift-tools-version: 5.9
// mero-swift, the Swift SDK, as Swift Package Manager installs it from this
// repository: `.package(url: "https://github.com/calimero-network/core", exact: "<VERSION>")`
// and `.product(name: "MeroKit", package: "core")`. SwiftPM reads a package
// from the root of a git repository, so this manifest points at the sources in
// sdks/clients/mero-swift, and a core release tag is its version.
//
// The libraries only. sdks/clients/mero-swift/Package.swift is the SDK's own
// manifest (tests, the example) and the one to develop with; the products,
// targets and dependencies here match it, and sdk-mero-swift.yml checks that.
import PackageDescription
let sources = "sdks/clients/mero-swift/Sources"
let package = Package(
name: "mero-swift",
platforms: [
.iOS(.v15),
.macOS(.v12),
],
products: [
.library(name: "MeroKit", targets: ["MeroKit"]),
.library(name: "MeroAPI", targets: ["MeroAPI"]),
.library(name: "MeroKitUI", targets: ["MeroKitUI"]),
.library(name: "MeroKitTestSupport", targets: ["MeroKitTestSupport"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-openapi-runtime", exact: "1.9.0"),
.package(url: "https://github.com/apple/swift-http-types", exact: "1.5.1"),
],
targets: [
.target(
name: "MeroAPI",
dependencies: [
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
.product(name: "HTTPTypes", package: "swift-http-types"),
],
path: "\(sources)/MeroAPI"
),
.target(
name: "MeroKit",
dependencies: [
"MeroAPI",
.product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),
.product(name: "HTTPTypes", package: "swift-http-types"),
],
path: "\(sources)/MeroKit",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.target(
name: "MeroKitUI",
dependencies: ["MeroKit", "MeroAPI", .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime")],
path: "\(sources)/MeroKitUI",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.target(
name: "MeroKitTestSupport",
dependencies: ["MeroKit"],
path: "\(sources)/MeroKitTestSupport"
),
]
)