-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
65 lines (61 loc) · 2.71 KB
/
Package.swift
File metadata and controls
65 lines (61 loc) · 2.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
// swift-tools-version: 5.9
import PackageDescription
let protobufMinVersion: Version = "1.29.0"
#if targetEnvironment(simulator) || targetEnvironment(macCatalyst) || os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
//Exclude CryptoSwift package (used built-in CommonCrypto)
let dependencies: [Package.Dependency] = [
.package(url: "https://github.com/apple/swift-protobuf.git", from: protobufMinVersion),
]
let mainTargetDependencies: [Target.Dependency] = [
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
]
#else
let dependencies: [Package.Dependency] = [
.package(url: "https://github.com/apple/swift-protobuf.git", from: protobufMinVersion),
.package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", from: "1.8.4")
]
let mainTargetDependencies: [Target.Dependency] = [
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
.product(name: "CryptoSwift", package: "CryptoSwift")
]
#endif
let package = Package(
name: "SwiftySpot",
platforms: [
.macOS(.v10_13), .macCatalyst(.v13), .iOS(.v11), .tvOS(.v11), .watchOS(.v5), .visionOS(.v1)
],
products: [
.library(
name: "SwiftySpot",
targets: ["SwiftySpot"]),
], dependencies: dependencies, targets: [
.target(name: "SwiftySpot", dependencies: mainTargetDependencies, resources: [
.copy("PrivacyInfo.xcprivacy")
]),
.testTarget(name: "SwiftySpotLocalTests", dependencies: ["SwiftySpot"], exclude: ["TestConstantsXCodeEnvExt.swift"], resources: [
.process("albumsMetaReq.protobuf"),
.process("albumsMetaResponse.protobuf"),
.process("artistsMetaReq.protobuf"),
.process("artistsMetaResponse.protobuf"),
.process("dislikedArtistsReq.protobuf"),
.process("dislikedArtistsResponse.protobuf"),
.process("dislikedTracksReq.protobuf"),
.process("dislikedTracksResponse.protobuf"),
.process("landingResponse.protobuf"),
.process("likedArtistsReq.protobuf"),
.process("likedArtistsResponse.protobuf"),
.process("likedTracksReq.protobuf"),
.process("likedTracksResponse.protobuf"),
.process("playlistFromTrackResponse.protobuf"),
.process("playlistMetaReq.protobuf"),
.process("playlistMetaResponse.protobuf"),
.process("playlistResponse.protobuf"),
.process("searchAutocompleteResponse.protobuf"),
.process("searchResponse.protobuf"),
.process("trackLyricsResponse.protobuf"),
.process("tracksMetaReq.protobuf"),
.process("tracksMetaResponse.protobuf"),
]),
],
swiftLanguageVersions: [.v5]
)