Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
68 lines (65 loc) · 3.12 KB
/
Copy pathPackage.swift
File metadata and controls
68 lines (65 loc) · 3.12 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "PaystackSDK",
platforms: [.iOS(.v13), .macOS(.v11)],
products: [
.library(
name: "PaystackCore",
targets: ["PaystackCore"]),
.library(
name: "PaystackUI",
targets: ["PaystackUI"]),
.library(
name: "PaystackPusherWrapper",
targets: ["PaystackPusherWrapper"])
],
dependencies: [.package(url: "https://github.com/pusher/pusher-websocket-swift.git", from: "10.1.0")],
targets: [
.target(
name: "PaystackCore",
dependencies: [.product(name: "PusherSwift", package: "pusher-websocket-swift"),
"PaystackPusherWrapper"],
path: "Sources/PaystackSDK",
resources: [
.process("Versioning/versions.plist"),
.process("Core/Service/Subscription/secrets.plist")
]),
.target(
name: "PaystackUI",
dependencies: ["PaystackCore"],
path: "Sources/PaystackUI",
resources: [.process("Design/FontAssets")]),
.binaryTarget(
name: "PaystackPusherWrapper",
path: "PaystackPusherWrapper.xcframework"
),
.testTarget(
name: "PaystackSDKTests",
dependencies: ["PaystackCore", "PaystackUI"],
resources: [
.copy("API/Transactions/Resources/VerifyAccessCode.json"),
.copy("API/Charge/Resources/ChargeAuthenticationResponse.json"),
.copy("API/Other/Resources/AddressStatesResponse.json"),
.copy("API/Charge/Resources/ChargeMobileMoneyResponse.json"),
.copy("API/Charge/Resources/PayWithTransferResponse.json"),
.copy("API/Charge/Resources/PayWithTransferPusherSuccess.json"),
.copy("API/Charge/Resources/PayWithTransferPusherCreditReceived.json"),
.copy("API/Charge/Resources/PayWithTransferPusherCreditPending.json"),
.copy("API/Charge/Resources/PayWithTransferPusherCreditRejected.json"),
.copy("API/Charge/Resources/PayWithTransferPusherIncorrectAmount.json"),
.copy("API/Charge/Resources/ZapMandateResponse.json"),
.copy("API/Charge/Resources/CapitecPayAuthenticateResponse.json"),
.copy("API/Charge/Resources/QRGenerateResponse.json"),
.copy("API/Charge/Resources/ZapPusherSuccess.json"),
.copy("API/Charge/Resources/ZapPusherFailed.json"),
.copy("API/Charge/Resources/CapitecPayPusherSuccess.json"),
.copy("API/Charge/Resources/CapitecPayPusherFailed.json"),
.copy("API/Charge/Resources/CapitecPayPusherPending.json"),
.copy("API/Charge/Resources/CapitecRequeryResponse.json"),
.copy("API/Charge/Resources/QRPusherSuccess.json"),
.copy("API/Charge/Resources/QRPusherFailed.json"),
.copy("API/Charge/Resources/QRPusherTransAsString.json")
])
]
)