-
Notifications
You must be signed in to change notification settings - Fork 5
/
Package.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.303.1.1004/dynatrace-mobile-agent-ios-8.303.1.1004-xcframework.zip",
checksum: "8970fb883441cd3410dc80306f70e67048579df4a0e440ab7f3370daed5c9e2f"
),
.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.303.1.1004/dynatrace-mobile-agent-ios-8.303.1.1004-xcframework-static.zip",
checksum: "66484eb3a9f1a82cedf442b3db27f89e9819cdfff91e62dc480b6e6dfc6f4843"
),
.binaryTarget(
name: "DynatraceSessionReplay",
url: "https://mobileagent.downloads.dynatrace.com/ios/8.303.1.1004/dynatrace-mobile-agent-ios-8.303.1.1004-replay-xcframework.zip",
checksum: "6439ab3f687972669df10b781c9fced79a599528e363e95dcff64c24025fd4c8"
),
]
)