-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathPackage.swift
More file actions
38 lines (35 loc) · 985 Bytes
/
Package.swift
File metadata and controls
38 lines (35 loc) · 985 Bytes
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
// swift-tools-version:5.6
import PackageDescription
let applePlatforms: [Platform] = [
.iOS,
.macOS,
.tvOS,
.watchOS,
.macCatalyst,
.custom("visionos")
]
let package = Package(
name: "CryptoSwift",
platforms: [
.macOS(.v10_13), .macCatalyst(.v13), .iOS(.v11), .tvOS(.v11), .watchOS(.v4), .custom("visionos", versionString: "1.0")
],
products: [
.library(
name: "CryptoSwift",
targets: ["CryptoSwift"]
)
],
targets: [
// Keep the privacy manifest out of non-Apple builds so SwiftPM doesn't pull in
// Foundation just to synthesize a resource bundle accessor.
.target(name: "CryptoSwiftResources", resources: [.copy("PrivacyInfo.xcprivacy")]),
.target(
name: "CryptoSwift",
dependencies: [
.target(name: "CryptoSwiftResources", condition: .when(platforms: applePlatforms))
]
),
.testTarget(name: "CryptoSwiftTests", dependencies: ["CryptoSwift"])
],
swiftLanguageVersions: [.v5]
)