-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
75 lines (73 loc) · 2.7 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
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "oa-ios-sdk",
platforms: [
.iOS(.v15),
.tvOS(.v15),
.macCatalyst(.v15),
.visionOS(.v1),
.macOS(.v13)
],
products: [
// Marketing contains any code that does NOT require privacy disclosures. Mainly functional or utility features.
.library(
name: "Marketing",
targets: ["Marketing"]),
// MarketingData contains data collection for fraud and ads analysis, excludes IDFA related code.
// Apps including this will probably require a privacy manifest.
.library(
name: "MarketingData",
targets: ["MarketingData"]
),
// MarketingDataIDFA adds an IDFA helper class for use with MarketingData.
// App must show the ATT prompt and include a privacy manifest.
.library(
name: "MarketingDataIDFA",
targets: ["MarketingDataIDFA"]
)
],
targets: [
.target(
name: "Marketing"),
.target(
name: "MarketingData",
dependencies: ["Marketing"],
linkerSettings: [
.linkedFramework("WebKit", .when(platforms: [.iOS, .macCatalyst, .visionOS])),
.linkedFramework("AdServices", .when(platforms: [.iOS, .macCatalyst, .visionOS]))
]
),
.target(
name: "MarketingDataIDFA",
dependencies: ["MarketingData"],
linkerSettings: [
.linkedFramework("AdSupport", .when(platforms: [.iOS, .tvOS, .macCatalyst, .visionOS])),
.linkedFramework("AppTrackingTransparency", .when(platforms: [.iOS, .tvOS, .macCatalyst, .visionOS]))
]
),
.testTarget(
name: "MarketingTests",
dependencies: ["Marketing"],
resources: [
.copy("Resources/compression_lorem.txt"),
.copy("Resources/compression_ambrose.txt"),
.copy("Resources/compressed_ambrose.txt"),
.copy("Resources/config.json"),
.copy("Resources/config_data_disabled.json"),
.copy("Resources/config_data_enabled.json"),
.copy("Resources/config_log_level.json"),
.copy("Resources/config_unsupported_fields.json"),
]
),
.testTarget(
name: "MarketingDataTests",
dependencies: ["MarketingData"]
),
.testTarget(
name: "MarketingDataIDFATests",
dependencies: ["MarketingDataIDFA"]
)
]
)