-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
74 lines (71 loc) · 3.52 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
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let swiftSettings: [SwiftSetting] = [
// Only for development checks
// SwiftSetting.unsafeFlags([
// "-Xfrontend", "-strict-concurrency=complete",
// "-Xfrontend", "-warn-concurrency",
// "-Xfrontend", "-enable-actor-data-race-checks",
// ])
]
let package = Package(
name: "ForestryLogger",
platforms: [
.iOS(.v11),
.macOS(.v11),
.tvOS(.v11)
],
products: [
.library(name: "ForestryLoggerLibrary", targets: ["ForestryLoggerLibrary"]),
.library(name: "ForestryFileLogger", targets: ["ForestryFileLogger"]),
.library(name: "ForestrySwiftyBeaverSupport", targets: ["ForestrySwiftyBeaverSupport"]),
.library(name: "ForestryLogRocketSupport", targets: ["ForestryLogRocketSupport"]),
.library(name: "ForestrySentrySupport", targets: ["ForestrySentrySupport"]),
.library(name: "ForestryDatadogSupport", targets: ["ForestryDatadogSupport"]),
.library(name: "ForestryOSLogSupport", targets: ["ForestryOSLogSupport"])
],
dependencies: [
.package(url: "https://github.com/DataDog/dd-sdk-ios", .upToNextMajor(from: .init(2, 7, 1))),
.package(url: "https://github.com/SwiftyBeaver/SwiftyBeaver", .upToNextMajor(from: .init(1, 9, 6))),
.package(url: "https://github.com/LogRocket/logrocket-ios-swift-package", .upToNextMajor(from: .init(1, 12, 0))),
.package(url: "https://github.com/getsentry/sentry-cocoa.git", .upToNextMajor(from: .init(8, 3, 0))),
.package(url: "https://github.com/apple/swift-docc-plugin", branch: "main")
],
targets: [
.target(name: "ForestryLoggerLibrary", dependencies: []),
.target(name: "ForestryFileLogger", dependencies: ["ForestryLoggerLibrary"]),
.target(name: "ForestrySwiftyBeaverSupport",
dependencies: [
.product(name: "SwiftyBeaver", package: "SwiftyBeaver"),
.target(name: "ForestryLoggerLibrary")
],
swiftSettings: swiftSettings),
.target(name: "ForestryLogRocketSupport",
dependencies: [
.product(name: "LogRocket", package: "logrocket-ios-swift-package", condition: .when(platforms: [.iOS, .macCatalyst])),
.target(name: "ForestryLoggerLibrary")
]),
.target(name: "ForestrySentrySupport",
dependencies: [
.product(name: "Sentry", package: "sentry-cocoa"),
.target(name: "ForestryLoggerLibrary")
],
swiftSettings: swiftSettings),
.target(name: "ForestryOSLogSupport",
dependencies: [
.target(name: "ForestryLoggerLibrary")
],
swiftSettings: swiftSettings),
.target(name: "ForestryDatadogSupport",
dependencies: [
.product(name: "DatadogCore", package: "dd-sdk-ios", condition: .when(platforms: [.iOS, .macCatalyst])),
.product(name: "DatadogLogs", package: "dd-sdk-ios", condition: .when(platforms: [.iOS, .macCatalyst])),
.target(name: "ForestryLoggerLibrary")
],
swiftSettings: swiftSettings),
.testTarget(name: "ForestryLoggerLibraryTests",
dependencies: ["ForestryLoggerLibrary"],
swiftSettings: swiftSettings)
]
)