-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathPackage.swift
More file actions
57 lines (53 loc) · 1.97 KB
/
Package.swift
File metadata and controls
57 lines (53 loc) · 1.97 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let noLocation = "-NoLocation"
let mpIterable = "mParticle-Iterable"
let mpIterableNoLocation = mpIterable + noLocation
// MARK: - External Packages
let mpSDK = "mParticle-Apple-SDK"
let mpSDKNoLocation = mpSDK + noLocation
let iterableSDK = "IterableSDK"
let package = Package(
name: mpIterable,
platforms: [ .iOS(.v11) ],
products: [
.library(name: mpIterable, targets: [mpIterable]),
.library(name: mpIterableNoLocation, targets: [mpIterableNoLocation])
],
dependencies: [
.package(name: mpSDK,
url: "https://github.com/mParticle/mparticle-apple-sdk",
.upToNextMajor(from: "8.19.0")),
.package(name: iterableSDK,
url: "https://github.com/Iterable/swift-sdk",
.upToNextMajor(from: "6.5.2")),
],
targets: [
.target(
name: mpIterable,
dependencies: [
.product(name: mpSDK, package: mpSDK),
.product(name: iterableSDK, package: iterableSDK),
.product(name: "IterableAppExtensions", package: iterableSDK)
],
path: "mParticle-iterable",
exclude: ["Info.plist"],
resources: [.process("PrivacyInfo.xcprivacy")],
publicHeadersPath: "."
),
.target(
name: mpIterableNoLocation,
dependencies: [
.product(name: mpSDKNoLocation, package: mpSDK),
.product(name: iterableSDK, package: iterableSDK),
.product(name: "IterableAppExtensions", package: iterableSDK)
],
path: "mParticle-iterable-NoLocation",
exclude: ["Info.plist"],
resources: [.process("PrivacyInfo.xcprivacy")],
publicHeadersPath: ".",
cSettings: [.define("MP_NO_LOCATION")]
),
]
)