Skip to content

Commit c7dcb55

Browse files
authored
Drop Swift versions earlier than 5.8 (apple#299)
* Drop Swift versions earlier than 5.8 * Delete build_podspec.sh * Update check_no_api_breakages script
1 parent ebb05e0 commit c7dcb55

34 files changed

+40
-1315
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.6
1+
// swift-tools-version:5.8
22
//===----------------------------------------------------------------------===//
33
//
44
// This source file is part of the Swift Logging API open source project

[email protected]

Lines changed: 0 additions & 33 deletions
This file was deleted.

[email protected]

Lines changed: 0 additions & 33 deletions
This file was deleted.

[email protected]

Lines changed: 0 additions & 33 deletions
This file was deleted.

[email protected]

Lines changed: 0 additions & 33 deletions
This file was deleted.

[email protected]

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you have a server-side Swift application, or maybe a cross-platform (for exam
1010

1111
#### Adding the dependency
1212

13-
`SwiftLog` is designed for Swift 5. To depend on the logging API package, you need to declare your dependency in your `Package.swift`:
13+
`SwiftLog` is designed for Swift 5.8 and later. To depend on the logging API package, you need to declare your dependency in your `Package.swift`:
1414

1515
```swift
1616
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
@@ -19,10 +19,6 @@ If you have a server-side Swift application, or maybe a cross-platform (for exam
1919
and to your application/library target, add `"Logging"` to your `dependencies`, e.g. like this:
2020

2121
```swift
22-
// Target syntax for Swift up to version 5.1
23-
.target(name: "BestExampleApp", dependencies: ["Logging"]),
24-
25-
// Target for Swift 5.2
2622
.target(name: "BestExampleApp", dependencies: [
2723
.product(name: "Logging", package: "swift-log")
2824
],

Sources/Logging/LogHandler.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,4 @@ extension LogHandler {
212212

213213
// MARK: - Sendable support helpers
214214

215-
#if compiler(>=5.6)
216215
@preconcurrency public protocol _SwiftLogSendableLogHandler: Sendable {}
217-
#else
218-
public protocol _SwiftLogSendableLogHandler {}
219-
#endif

0 commit comments

Comments
 (0)