Skip to content

Commit

Permalink
Separate package file for Swift 6
Browse files Browse the repository at this point in the history
  • Loading branch information
tevelee committed Jul 14, 2024
1 parent 02c969a commit 633e0aa
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 6.0
// swift-tools-version: 5.7

import PackageDescription

Expand All @@ -19,13 +19,11 @@ let package = Package(
targets: [
.target(
name: "Flow",
exclude: ["Example"],
swiftSettings: [.swiftLanguageVersion(.v6)]
exclude: ["Example"]
),
.testTarget(
name: "FlowTests",
dependencies: ["Flow"],
swiftSettings: [.swiftLanguageVersion(.v6)]
dependencies: ["Flow"]
)
]
)
31 changes: 31 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// swift-tools-version: 6.0

import PackageDescription

let package = Package(
name: "Flow",
platforms: [
.iOS(.v16),
.macOS(.v13),
.tvOS(.v16),
.watchOS(.v9)
],
products: [
.library(name: "Flow", targets: ["Flow"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
],
targets: [
.target(
name: "Flow",
exclude: ["Example"],
swiftSettings: [.swiftLanguageVersion(.v6)]
),
.testTarget(
name: "FlowTests",
dependencies: ["Flow"],
swiftSettings: [.swiftLanguageVersion(.v6)]
)
]
)

0 comments on commit 633e0aa

Please sign in to comment.