forked from web3swift-team/web3swift
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Package.swift
executable file
·56 lines (54 loc) · 1.96 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
// swift-tools-version: 5.5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Web3swift",
platforms: [
.macOS(.v10_15), .iOS(.v13)
],
products: [
.library(name: "web3swift", targets: ["web3swift"])
],
dependencies: [
.package(url: "https://github.com/attaswift/BigInt.git", from: "5.3.0"),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.5.1")
],
targets: [
.target(name: "secp256k1"),
.target(
name: "Core",
dependencies: ["BigInt", "secp256k1", "CryptoSwift"]
),
.target(
name: "web3swift",
dependencies: ["Core", "BigInt", "secp256k1"],
resources: [
.copy("./Browser/browser.js"),
.copy("./Browser/browser.min.js"),
.copy("./Browser/wk.bridge.min.js")
]
),
.testTarget(
name: "localTests",
dependencies: ["web3swift"],
path: "Tests/web3swiftTests/localTests",
resources: [
.copy("../../../TestToken/Helpers/SafeMath/SafeMath.sol"),
.copy("../../../TestToken/Helpers/TokenBasics/ERC20.sol"),
.copy("../../../TestToken/Helpers/TokenBasics/IERC20.sol"),
.copy("../../../TestToken/Token/Web3SwiftToken.sol")
]
),
.testTarget(
name: "remoteTests",
dependencies: ["web3swift"],
path: "Tests/web3swiftTests/remoteTests",
resources: [
.copy("../../../TestToken/Helpers/SafeMath/SafeMath.sol"),
.copy("../../../TestToken/Helpers/TokenBasics/ERC20.sol"),
.copy("../../../TestToken/Helpers/TokenBasics/IERC20.sol"),
.copy("../../../TestToken/Token/Web3SwiftToken.sol")
]
)
]
)