-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
77 lines (72 loc) · 2.82 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
67
68
69
70
71
72
73
74
75
76
77
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let iosSdkDir = "ios"
let package = Package(
name: "Parra",
defaultLocalization: "en",
platforms: [
.iOS("17.0"),
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "Parra",
targets: [
"Parra"
]
),
.library(
name: "ParraStorefront",
targets: [
"ParraStorefront"
]
)
],
dependencies: [
.package(url: "https://github.com/Shopify/mobile-buy-sdk-ios", from: "13.1.0"),
.package(url: "https://github.com/Shopify/checkout-sheet-kit-swift", from: "3.0.4"),
.package(url: "https://github.com/ActuallyTaylor/SwiftHTMLToMarkdown", from: "1.1.1")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "Parra",
path: "\(iosSdkDir)/Sources/Parra",
resources: [
// Xcode doesn’t recognize privacy manifest files as resources by default.
// https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/adding_a_privacy_manifest_to_your_app_or_third-party_sdk/
.process("PrivacyInfo.xcprivacy")
]
),
.target(
name: "ParraStorefront",
dependencies: [
.target(name: "Parra"),
.product(name: "Buy", package: "mobile-buy-sdk-ios"),
.product(name: "ShopifyCheckoutSheetKit", package: "checkout-sheet-kit-swift"),
.product(name: "SwiftHTMLtoMarkdown", package: "SwiftHTMLToMarkdown")
],
path: "\(iosSdkDir)/Sources/ParraStorefront",
resources: [
// Xcode doesn’t recognize privacy manifest files as resources by default.
// https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/adding_a_privacy_manifest_to_your_app_or_third-party_sdk/
.process("PrivacyInfo.xcprivacy")
]
),
.testTarget(
name: "ParraTests",
dependencies: ["Parra"],
path: "\(iosSdkDir)/Tests/ParraTests"
),
],
swiftLanguageVersions: [.version("5.10")]
)
let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("BareSlashRegexLiterals"),
]
for target in package.targets {
target.swiftSettings = target.swiftSettings ?? []
target.swiftSettings?.append(contentsOf: swiftSettings)
}