-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
52 lines (48 loc) · 1.56 KB
/
Package.swift
File metadata and controls
52 lines (48 loc) · 1.56 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
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Nubrick",
platforms: [
.iOS("13.4"),
],
products: [
.library(
name: "Nubrick",
targets: ["Nubrick"]
),
],
dependencies: [
.package(url: "https://github.com/facebook/yoga.git", .upToNextMinor(from: "3.2.1")),
],
targets: [
// Production: Remote binary downloaded by SPM consumers
.binaryTarget(
name: "Nubrick",
url: "https://github.com/plaidev/nubrick-ios/releases/download/v0.16.2/Nubrick.xcframework.zip",
checksum: "7a58ca46a4d20760fdf2035f2384f88169684ce4f778a6f1f8ae8bcc5eb5406c"
),
// Development: Source target for unit tests (supports @testable import)
.target(
name: "NubrickLocal",
dependencies: ["YogaKit"],
path: "Sources/Nubrick",
exclude: ["PrivacyInfo.xcprivacy"],
resources: [
.copy("PrivacyInfo.xcprivacy")
]
),
.target(
name: "YogaKit",
dependencies: ["yoga"],
path: "Sources/YogaKit",
publicHeadersPath: "include/YogaKit"
),
// Unit tests use source target for @testable import
.testTarget(
name: "NubrickTests",
dependencies: ["NubrickLocal"]
),
],
cxxLanguageStandard: CXXLanguageStandard(rawValue: "c++20")
)