Skip to content

Commit

Permalink
Drop Swift versions earlier than 5.8 (apple#299)
Browse files Browse the repository at this point in the history
* Drop Swift versions earlier than 5.8

* Delete build_podspec.sh

* Update check_no_api_breakages script
  • Loading branch information
gjcairo authored and ayushi2103 committed May 17, 2024
1 parent 315fd6c commit c9174e0
Show file tree
Hide file tree
Showing 34 changed files with 40 additions and 1,318 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.6
// swift-tools-version:5.8
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift Logging API open source project
Expand Down
33 changes: 0 additions & 33 deletions [email protected]

This file was deleted.

33 changes: 0 additions & 33 deletions [email protected]

This file was deleted.

33 changes: 0 additions & 33 deletions [email protected]

This file was deleted.

33 changes: 0 additions & 33 deletions [email protected]

This file was deleted.

33 changes: 0 additions & 33 deletions [email protected]

This file was deleted.

6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If you have a server-side Swift application, or maybe a cross-platform (for exam

#### Adding the dependency

`SwiftLog` is designed for Swift 5. To depend on the logging API package, you need to declare your dependency in your `Package.swift`:
`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`:

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

```swift
// Target syntax for Swift up to version 5.1
.target(name: "BestExampleApp", dependencies: ["Logging"]),

// Target for Swift 5.2
.target(name: "BestExampleApp", dependencies: [
.product(name: "Logging", package: "swift-log")
],
Expand Down
4 changes: 0 additions & 4 deletions Sources/Logging/LogHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,4 @@ extension LogHandler {

// MARK: - Sendable support helpers

#if compiler(>=5.6)
@preconcurrency public protocol _SwiftLogSendableLogHandler: Sendable {}
#else
public protocol _SwiftLogSendableLogHandler {}
#endif
Loading

0 comments on commit c9174e0

Please sign in to comment.