-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathPackage.swift
More file actions
72 lines (70 loc) · 2.47 KB
/
Copy pathPackage.swift
File metadata and controls
72 lines (70 loc) · 2.47 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
66
67
68
69
70
71
72
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "mParticle-Apple-SDK",
platforms: [.iOS(.v15), .tvOS(.v15)],
products: [
.library(
name: "mParticle-Apple-SDK",
targets: ["mParticle_Apple_SDK"]
)
],
dependencies: [
.package(
url: "https://github.com/ROKT/rokt-contracts-apple.git",
.upToNextMajor(from: "2.0.0")
)
],
targets: [
// Swift-only components
.target(
name: "mParticle_Apple_SDK_Swift",
path: "mParticle-Apple-SDK-Swift/Sources"
),
// Objective-C SDK - source-based distribution (internal module: mParticle_Apple_SDK_ObjC)
.target(
name: "mParticle_Apple_SDK_ObjC",
dependencies: [
"mParticle_Apple_SDK_Swift",
.product(name: "RoktContracts", package: "rokt-contracts-apple")
],
path: "mParticle-Apple-SDK",
sources: nil,
resources: [
.process("../PrivacyInfo.xcprivacy")
],
publicHeadersPath: "Include",
cSettings: [
.headerSearchPath("."),
.headerSearchPath("Include"),
.headerSearchPath("Logger"),
.headerSearchPath("Network"),
.headerSearchPath("Identity"),
.headerSearchPath("Event"),
.headerSearchPath("Ecommerce"),
.headerSearchPath("Kits"),
.headerSearchPath("Utils"),
.headerSearchPath("Persistence"),
.headerSearchPath("Consent"),
.headerSearchPath("Custom Modules"),
.headerSearchPath("AppNotifications"),
.headerSearchPath("Data Model"),
.headerSearchPath("Libraries/Reachability")
],
linkerSettings: [
.linkedFramework("Foundation"),
.linkedFramework("UIKit", .when(platforms: [.iOS])),
.linkedFramework("WebKit", .when(platforms: [.iOS])),
.linkedFramework("UserNotifications", .when(platforms: [.iOS]))
]
),
.target(
name: "mParticle_Apple_SDK",
dependencies: [
"mParticle_Apple_SDK_ObjC",
.product(name: "RoktContracts", package: "rokt-contracts-apple")
],
path: "MParticle/Sources"
)
]
)