forked from finsig/smoldot-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
51 lines (45 loc) · 1.65 KB
/
Package.swift
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
// swift-tools-version: 5.10
import PackageDescription
let package = Package(
name: "smoldot-swift",
platforms: [
.macOS(.v10_15), .iOS(.v13)
],
products: [
.library(
name: "SmoldotSwift",
targets: ["SmoldotSwift"]),
],
dependencies: [
.package(url: "https://github.com/finsig/json-rpc2", from: "0.1.0")
],
targets: [
.target(
name: "SmoldotSwift",
dependencies: [
"CSmoldot",
.product(name: "JSONRPC2", package: "json-rpc2"),
],
path: "Sources/SmoldotSwift",
resources: [
.process("Resources/polkadot.json"),
.process("Resources/kusama.json"),
.process("Resources/rococo.json"),
.process("Resources/westend.json")]
),
.target(
name: "CSmoldot",
dependencies: ["smoldot"],
path: "Sources/CSmoldot"),
///
/// - IMPORTANT: When editing this file manually, use a single line of code (newline terminated) for the binary target. This preserves/simplifies sed script compatibility.
///
/// Release
.binaryTarget(name: "smoldot", url: "https://github.com/finsig/smoldot-swift/releases/download/v0.1.0/smoldot.xcframework.zip", checksum: "7aff9a11e6333d214e8d7975d388766c591e1165506af382c356b3aff6898210"),
/// Development
/*.binaryTarget(name: "smoldot", path: "Libs/smoldot.xcframework"),*/
.testTarget(
name: "SmoldotSwiftTests",
dependencies: ["SmoldotSwift"]),
]
)