File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
Sources/SwiftTrader/Network/Kucoin Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,16 @@ let package = Package(
13
13
targets: [ " SwiftTrader " ]
14
14
)
15
15
] ,
16
- dependencies: [ ] ,
16
+ dependencies: [
17
+ // [Server-side Support] SwiftCrypto is a Linux-compatible port of Apple's CryptoKit library.
18
+ . package ( url: " https://github.com/apple/swift-crypto.git " , from: " 2.0.0 " )
19
+ ] ,
17
20
targets: [
18
21
. target(
19
22
name: " SwiftTrader " ,
20
- dependencies: [ ]
23
+ dependencies: [
24
+ . product( name: " Crypto " , package : " swift-crypto " )
25
+ ]
21
26
) ,
22
27
. testTarget(
23
28
name: " SwiftTraderTests " ,
Original file line number Diff line number Diff line change 5
5
// Created by Fernando Fernandes on 29.01.22.
6
6
//
7
7
8
+ import Crypto
8
9
import Foundation
9
10
10
- #if canImport(CryptoKit)
11
- import CryptoKit
12
- #elseif canImport(Vapor)
13
- // [Server-side Support] Vapor includes SwiftCrypto, which is a Linux-compatible port of Apple's CryptoKit library.
14
- // https://docs.vapor.codes/4.0/crypto/
15
- import Vapor
16
- #endif
17
-
18
11
/// Holds logic to sign requests against Kucoin APIs.
19
12
public extension KucoinAPI {
20
13
You can’t perform that action at this time.
0 commit comments