-
Notifications
You must be signed in to change notification settings - Fork 59
/
Package.swift
93 lines (91 loc) · 2.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "InstantSearch",
platforms: [
.iOS(.v14),
.macOS(.v11),
.watchOS(.v7),
.tvOS(.v14)
],
products: [
.library(
name: "InstantSearch",
targets: ["InstantSearch", "InstantSearchCore"]
),
.library(
name: "InstantSearchCore",
targets: ["InstantSearchCore"]
),
.library(
name: "InstantSearchInsights",
targets: ["InstantSearchInsights"]
),
.library(
name: "InstantSearchSwiftUI",
targets: ["InstantSearchSwiftUI"]
)
],
dependencies: [
.package(name: "AlgoliaSearchClient",
url: "https://github.com/algolia/algoliasearch-client-swift",
from: "8.18.2"),
.package(url: "https://github.com/apple/swift-log",
from: "1.5.4"),
.package(url: "https://github.com/apple/swift-protobuf",
.exact("1.22.0")),
.package(name: "InstantSearchTelemetry",
url: "https://github.com/algolia/instantsearch-telemetry-native",
.exact("0.1.3"))
],
targets: [
.target(
name: "InstantSearchInsights",
dependencies: ["AlgoliaSearchClient"],
exclude: ["Readme.md"],
resources: [.copy("../PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "InstantSearchInsightsTests",
dependencies: ["InstantSearchInsights", "AlgoliaSearchClient"]
),
.target(
name: "InstantSearchCore",
dependencies: ["AlgoliaSearchClient", "InstantSearchInsights", .product(name: "InstantSearchTelemetry", package: "InstantSearchTelemetry"), .product(name: "Logging", package: "swift-log")],
resources: [.copy("../PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "InstantSearchCoreTests",
dependencies: ["InstantSearchCore", "AlgoliaSearchClient", "InstantSearchInsights"],
resources: [
.copy("Misc/DisjFacetingResult1.json"),
.copy("Misc/DisjFacetingResult2.json"),
.copy("Misc/DisjFacetingResult3.json"),
.copy("Misc/disjunctive.json"),
.copy("Misc/disjunctiveHierarchical.json"),
.copy("Misc/hierarchical.json"),
.copy("Misc/SearchResultFacets.json"),
.copy("Misc/SearchResultFacets2.json")
]
),
.target(
name: "InstantSearch",
dependencies: ["InstantSearchCore"],
resources: [.copy("../PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "InstantSearchTests",
dependencies: ["InstantSearch"]
),
.target(
name: "InstantSearchSwiftUI",
dependencies: ["InstantSearchCore", .product(name: "InstantSearchTelemetry", package: "InstantSearchTelemetry")],
resources: [.copy("../PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "InstantSearchSwiftUITests",
dependencies: ["InstantSearchSwiftUI"]
)
]
)