-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPackage.swift
50 lines (48 loc) · 2.28 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Dynatrace",
platforms: [
.iOS(.v11), .tvOS(.v11)
],
products: [
.library(
name: "Dynatrace",
targets: ["Dynatrace-Dynamic"]),
.library(
name: "Dynatrace-Static",
targets: ["Dynatrace-Static"]),
.library(
name: "DynatraceSessionReplay",
targets: ["Dynatrace-Dynamic", "DynatraceSessionReplay"]),
],
targets: [
.target( // wrap target to avoid Xcode bug (Apple Feedback Assistant issue number FB11833215)
name: "Dynatrace-Dynamic",
dependencies: ["Dynatrace"]
),
.binaryTarget(
name: "Dynatrace",
url: "https://mobileagent.downloads.dynatrace.com/ios/8.309.1.1009/dynatrace-mobile-agent-ios-8.309.1.1009-xcframework.zip",
checksum: "96acccb0155b049c0e79a2eff960c3288a9f00e6018a32ecb8cbdae97e2e71da"
),
.target( // wrap target to add linker settings
name: "Dynatrace-Static",
dependencies: ["DynatraceStatic"],
linkerSettings: [.linkedLibrary("c++")/*, .unsafeFlags(["-ObjC"])*/] //security restrictions currently don't allow unsafe flags here, needs to be added to Other Linker Flags manually
//for more details read https://github.com/apple/swift-evolution/blob/master/proposals/0238-package-manager-build-settings.md#unsafe-flags-all
//or https://forums.swift.org/t/confused-by-unsafe-flags-being-disallowed-in-dependencies/27359
),
.binaryTarget(
name: "DynatraceStatic",
url: "https://mobileagent.downloads.dynatrace.com/ios/8.309.1.1009/dynatrace-mobile-agent-ios-8.309.1.1009-xcframework-static.zip",
checksum: "30ae77ab3fe8dd61b1fe8e55df62dcec2f61e566f952d459ab264a236a77d161"
),
.binaryTarget(
name: "DynatraceSessionReplay",
url: "https://mobileagent.downloads.dynatrace.com/ios/8.309.1.1009/dynatrace-mobile-agent-ios-8.309.1.1009-replay-xcframework.zip",
checksum: "78f824a33c2e43aeaefc72246ec56b6582883e91c22bafe16a3a337973c95f0a"
),
]
)