-
Notifications
You must be signed in to change notification settings - Fork 10
/
Package.swift
75 lines (74 loc) · 3.64 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Substrate",
platforms: [.macOS(.v11), .iOS(.v14), .tvOS(.v14), .watchOS(.v7), .macCatalyst(.v14)],
products: [
.library(
name: "Substrate",
targets: ["Substrate"]),
.library(
name: "SubstrateKeychain",
targets: ["SubstrateKeychain"]),
.library(
name: "SubstrateRPC",
targets: ["SubstrateRPC"]),
],
dependencies: [
.package(url: "https://github.com/oscbyspro/Numberick.git", .upToNextMinor(from: "0.16.0")),
.package(url: "https://github.com/tesseract-one/xxHash.swift.git", .upToNextMinor(from: "0.1.0")),
.package(url: "https://github.com/tesseract-one/ScaleCodec.swift.git", .upToNextMinor(from: "0.3.1")),
.package(url: "https://github.com/tesseract-one/ContextCodable.swift.git", .upToNextMinor(from: "0.1.0")),
.package(url: "https://github.com/tesseract-one/Tuples.swift.git", .upToNextMinor(from: "0.1.0")),
.package(url: "https://github.com/tesseract-one/Blake2.swift.git", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/tesseract-one/UncommonCrypto.swift.git", .upToNextMinor(from: "0.2.1")),
.package(url: "https://github.com/tesseract-one/Sr25519.swift.git", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/tesseract-one/CSecp256k1.swift.git", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/tesseract-one/Bip39.swift.git", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/tesseract-one/Serializable.swift.git", .upToNextMinor(from: "0.3.1")),
.package(url: "https://github.com/tesseract-one/JsonRPC.swift.git", .upToNextMinor(from: "0.2.3")),
],
targets: [
.target(
name: "Substrate",
dependencies: [
.product(name: "Serializable", package: "Serializable.swift"),
.product(name: "ScaleCodec", package: "ScaleCodec.swift"),
.product(name: "ContextCodable", package: "ContextCodable.swift"),
.product(name: "Blake2", package: "Blake2.swift"),
.product(name: "Tuples", package: "Tuples.swift"),
.product(name: "xxHash", package: "xxHash.swift"),
"Numberick"
]),
.target(
name: "SubstrateKeychain",
dependencies: [
.product(name: "Sr25519", package: "Sr25519.swift"),
.product(name: "Ed25519", package: "Sr25519.swift"),
.product(name: "CSecp256k1", package: "CSecp256k1.swift"),
.product(name: "Bip39", package: "Bip39.swift"),
.product(name: "UncommonCrypto", package: "UncommonCrypto.swift"),
"Substrate"
],
path: "Sources/Keychain"),
.target(
name: "SubstrateRPC",
dependencies: [
.product(name: "Serializable", package: "Serializable.swift"),
.product(name: "JsonRPC", package: "JsonRPC.swift"),
"Substrate"
],
path: "Sources/RPC"),
.testTarget(
name: "KeychainTests",
dependencies: ["SubstrateKeychain"]),
.testTarget(
name: "SubstrateTests",
dependencies: ["Substrate"],
resources: [.copy("Resources")]),
.testTarget(
name: "IntegrationTests",
dependencies: ["Substrate", "SubstrateKeychain", "SubstrateRPC"])
]
)