-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPackage.swift
More file actions
92 lines (89 loc) · 2.65 KB
/
Copy pathPackage.swift
File metadata and controls
92 lines (89 loc) · 2.65 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "WavesSDK",
platforms: [.macOS(.v10_15), .iOS(.v13)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
// .library(
// name: "Base58Encoder",
// targets: ["Base58Encoder"]),
// .library(
// name: "Blake2",
// targets: ["Blake2"]),
// .library(
// name: "Keccak",
// targets: ["Keccak"]),
// .library(
// name: "Curve25519",
// targets: ["Curve25519"]),
// .library(
// name: "WavesSDKCrypto",
// targets: ["WavesSDKCrypto"]),
.library(
name: "WavesSDK",
targets: ["WavesSDK"]),
],
dependencies: [
.package(url: "https://github.com/mattgallagher/CwlUtils.git", from: Version(3, 0, 0)),
.package(url: "https://github.com/ReactiveX/RxSwift.git", .upToNextMajor(from: "6.5.0")),
.package(url: "https://github.com/Moya/Moya.git", .upToNextMajor(from: "15.0.0"))
],
targets: [
///
/// Base 58 Encoder library
///
.target(
name: "Base58Encoder",
dependencies: []),
///
/// Blake 2 library
///
.target(
name: "Blake2",
dependencies: []),
///
/// Keccak library
///
.target(
name: "Keccak",
dependencies: []),
///
/// Curve 25519 library
///
.target(
name: "ed25519",
dependencies: []),
.target(
name: "Curve25519",
dependencies: ["ed25519"]),
///
/// WavesSDK Crypto library
///
.target(
name: "WavesSDKCrypto",
dependencies: ["Keccak",
"Curve25519",
"Blake2",
"Base58Encoder"]),
///
/// WavesSDK library
///
.target(
name: "WavesSDK",
dependencies: [
"WavesSDKCrypto",
"Moya",
"RxSwift",
"CwlUtils",
.product(name: "RxMoya", package: "Moya")
]),
.testTarget(
name: "WavesSDKCryptoTests",
dependencies: ["WavesSDKCrypto"]),
.testTarget(
name: "WavesSDKTests",
dependencies: ["WavesSDK"]),
]
)