Skip to content

Commit

Permalink
chore: swaps @swift files around
Browse files Browse the repository at this point in the history
  • Loading branch information
danthorpe committed Sep 24, 2024
1 parent b467097 commit 0858896
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
34 changes: 20 additions & 14 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-tools-version: 6.0
@preconcurrency import PackageDescription
// swift-tools-version: 5.9
import PackageDescription

var package = Package(
name: "swift-composable-loadable",
Expand All @@ -14,32 +14,31 @@ var package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "1.15.0"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", exact: "1.14.0"),
],
targets: [
.target(
name: "ComposableLoadable",
dependencies: [
.product(
name: "ComposableArchitecture", package: "swift-composable-architecture"
)
]
.composableArchitecture
],
swiftSettings: .concurrency
),
.target(
name: "CommonTestHelpers",
dependencies: [
"ComposableLoadable",
.product(
name: "ComposableArchitecture", package: "swift-composable-architecture"
),
]
.composableArchitecture,
],
swiftSettings: .concurrency
),
.testTarget(
name: "ComposableLoadableTests",
dependencies: [
"CommonTestHelpers",
"ComposableLoadable",
]
],
swiftSettings: .concurrency
),
]
)
Expand All @@ -51,8 +50,15 @@ extension Target.Dependency {
}

extension [SwiftSetting] {
#if compiler(>=6)
static let concurrency: Self = [
.enableUpcomingFeature("StrictConcurrency"),
.enableUpcomingFeature("InferSendableFromCaptures"),
.enableUpcomingFeature("StrictConcurrency")
.enableUpcomingFeature("InferSendableFromCaptures")
]
#else
static let concurrency: Self = [
.enableExperimentalFeature("StrictConcurrency"),
.enableExperimentalFeature("InferSendableFromCaptures"),
]
#endif
}
34 changes: 14 additions & 20 deletions [email protected][email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// swift-tools-version: 5.9
import PackageDescription
// swift-tools-version: 6.0
@preconcurrency import PackageDescription

var package = Package(
name: "swift-composable-loadable",
Expand All @@ -14,31 +14,32 @@ var package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", exact: "1.14.0"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture", from: "1.15.0"),
],
targets: [
.target(
name: "ComposableLoadable",
dependencies: [
.composableArchitecture
],
swiftSettings: .concurrency
.product(
name: "ComposableArchitecture", package: "swift-composable-architecture"
)
]
),
.target(
name: "CommonTestHelpers",
dependencies: [
"ComposableLoadable",
.composableArchitecture,
],
swiftSettings: .concurrency
.product(
name: "ComposableArchitecture", package: "swift-composable-architecture"
),
]
),
.testTarget(
name: "ComposableLoadableTests",
dependencies: [
"CommonTestHelpers",
"ComposableLoadable",
],
swiftSettings: .concurrency
]
),
]
)
Expand All @@ -50,15 +51,8 @@ extension Target.Dependency {
}

extension [SwiftSetting] {
#if compiler(>=6)
static let concurrency: Self = [
.enableUpcomingFeature("StrictConcurrency")
.enableUpcomingFeature("InferSendableFromCaptures")
.enableUpcomingFeature("StrictConcurrency"),
.enableUpcomingFeature("InferSendableFromCaptures"),
]
#else
static let concurrency: Self = [
.enableExperimentalFeature("StrictConcurrency"),
.enableExperimentalFeature("InferSendableFromCaptures"),
]
#endif
}

0 comments on commit 0858896

Please sign in to comment.