forked from HusamAamer/instantsearch-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
74 lines (71 loc) · 2.33 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
// 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(.v9),
.macOS(.v10_11),
.watchOS(.v2),
.tvOS(.v9)
],
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.13.0"),
.package(name: "InstantSearchTelemetry",
url: "https://github.com/algolia/instantsearch-telemetry-native",
from: "0.1.2")
],
targets: [
.target(
name: "InstantSearchInsights",
dependencies: ["AlgoliaSearchClient"],
exclude: ["Readme.md"]),
.testTarget(
name: "InstantSearchInsightsTests",
dependencies: ["InstantSearchInsights", "AlgoliaSearchClient"]),
.target(
name: "InstantSearchCore",
dependencies: ["AlgoliaSearchClient", "InstantSearchInsights", .product(name: "InstantSearchTelemetry", package: "InstantSearchTelemetry")]),
.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"]),
.testTarget(
name: "InstantSearchTests",
dependencies: ["InstantSearch"]),
.target(
name: "InstantSearchSwiftUI",
dependencies: ["InstantSearchCore"]),
.testTarget(
name: "InstantSearchSwiftUITests",
dependencies: ["InstantSearchSwiftUI"])
]
)