-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
48 lines (46 loc) · 1.69 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
// 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")
])
]
)