-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
59 lines (55 loc) · 1.99 KB
/
Package.swift
File metadata and controls
59 lines (55 loc) · 1.99 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
58
59
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "Log4swift",
platforms: [
.iOS(.v12), .macOS(.v10_13), .watchOS(.v4)
],
products: [
.library(name: "Log4swift", targets: ["Log4swift"])
],
// Test targets are macOS-only (XCTest bundles under SwiftPM only run on
// the host). iOS/watchOS test coverage still goes through xcodebuild on
// the SwiftPM package via `xcodebuild -scheme Log4swift`.
targets: [
// Pure-Swift module.
.target(
name: "Log4swift",
path: "Log4swift",
exclude: [
"log4swift.h"
],
sources: [
"Appenders",
"Formatters",
"RotationPolicy",
"Utilities",
"Errors.swift",
"Logger.swift",
"Logger+convenience.swift",
"Logger+objectiveC.swift",
"LoggerFactory.swift",
"LoggerFactory+loadFromFile.swift",
"LogInformation.swift",
"LogLevel.swift"
]
),
.testTarget(
name: "Log4swiftTests",
dependencies: ["Log4swift"],
path: "Log4swiftTests",
resources: [
.copy("Resources/ValidCompleteConfiguration.plist")
]
)
// NOTE: Log4swiftPerformanceTests/ is not wired up: it has pre-existing
// compile errors (calls to FileAppender initialisers that no longer
// exist — `maxFileAge:`, `maxFileSize:` — and it relies on
// `createTemporaryFilePath` which under the old xcodeproj was shared
// from Log4swiftTests via Xcode file-membership, a mechanism SwiftPM
// does not have. Fix the API references and share the helper (e.g.
// move it into the Log4swift module under an internal test hook) if
// you want to bring these tests back.
],
swiftLanguageVersions: [.v5]
)