-
Notifications
You must be signed in to change notification settings - Fork 31
/
Package.swift
54 lines (52 loc) · 1.67 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "ExponeaSDK",
platforms: [
.iOS(.v11)
],
products: [
.library(
name: "ExponeaSDK",
targets: ["ExponeaSDK"]),
.library(
name: "ExponeaSDK-Notifications",
targets: ["ExponeaSDK-Notifications"]
)
],
dependencies: [
.package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.6.1")
],
targets: [
// Main library
.target(
name: "ExponeaSDK",
dependencies: ["ExponeaSDKShared", "ExponeaSDKObjC"],
path: "ExponeaSDK/ExponeaSDK",
exclude: ["Supporting Files/Info.plist"],
resources: [.copy("Supporting Files/PrivacyInfo.xcprivacy")]
),
// Notification extension library
.target(
name: "ExponeaSDK-Notifications",
dependencies: ["ExponeaSDKShared"],
path: "ExponeaSDK/ExponeaSDK-Notifications",
exclude: ["Supporting Files/Info.plist"],
resources: [.copy("Supporting Files/PrivacyInfo.xcprivacy")]
),
// Code shared between ExponeaSDK and ExponeaSDK-Notifications
.target(
name: "ExponeaSDKShared",
dependencies: ["SwiftSoup"],
path: "ExponeaSDK/ExponeaSDKShared",
exclude: ["Supporting Files/Info.plist"]
),
// ObjC code required by main library
.target(
name: "ExponeaSDKObjC",
dependencies: [],
path: "ExponeaSDK/ExponeaSDKObjC",
exclude: ["Info.plist"],
publicHeadersPath: ".")
]
)