forked from cashapp/cash-app-pay-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
66 lines (65 loc) · 1.9 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
57
58
59
60
61
62
63
64
65
66
// swift-tools-version: 5.7
import PackageDescription
let package = Package(
name: "PayKit",
defaultLocalization: "en",
platforms: [
.iOS(.v12),
.macOS(.v10_13),
],
products: [
.library(
name: "PayKit",
targets: ["PayKit"]
),
.library(
name: "PayKitUI",
targets: ["PayKitUI"]
),
],
dependencies: [
.package(url: "https://github.com/SwiftGen/SwiftGenPlugin.git", from: "6.6.2"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.9.0"),
],
targets: [
.target(
name: "PayKit",
resources: [
.process("PrivacyInfo.xcprivacy")
],
swiftSettings: [
.define("LOGGING", .when(configuration: .debug))
]
),
.target(
name: "PayKitUI",
resources: [
.copy("custom-xcassets-template.stencil"),
.copy("Shared/Assets/Resources/Colors.xcassets"),
.copy("swiftgen.yml"),
.copy("Shared/Assets/Resources/Images.xcassets"),
.process("PrivacyInfo.xcprivacy")
], plugins: [
.plugin(name: "SwiftGenPlugin", package: "SwiftGenPlugin"),
]
),
.testTarget(
name: "PayKitTests",
dependencies: ["PayKit"],
resources: [
.copy("Resources/Fixtures"),
.copy("Resources/Fixtures/Errors"),
]
),
.testTarget(
name: "PayKitUITests",
dependencies: [
"PayKitUI",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
],
resources: [
.copy("__Snapshots__/"),
]
)
]
)