Skip to content

Commit

Permalink
Add Swift 5.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Apr 9, 2023
1 parent fd7249f commit b01ff21
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
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.7
// swift-tools-version:5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down
41 changes: 41 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
import Foundation

let package = Package(
name: "swift-filestreamer",
platforms: [
.macOS(.v10_13),
.iOS(.v11),
.tvOS(.v11),
.watchOS(.v4),
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "FileStreamer",
targets: ["FileStreamer"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/apple/swift-system.git", from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "FileStreamer",
dependencies: [
.product(name: "SystemPackage", package: "swift-system"),
]),
.testTarget(
name: "FileStreamerTests",
dependencies: ["FileStreamer"]),
]
)

if ProcessInfo.processInfo.environment["ENABLE_DOCC_SUPPORT"] == "1" {
package.dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"))
}

0 comments on commit b01ff21

Please sign in to comment.