Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 84 additions & 75 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// swift-tools-version: 6.1
// swift-tools-version: 6.4

import Foundation
import PackageDescription

let package = Package(
name: "swift-sharing",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
.iOS(.v15),
.macOS(.v12),
.tvOS(.v15),
.watchOS(.v9),
],
products: [
.library(
Expand Down Expand Up @@ -38,8 +38,8 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.5.1"),
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-issue-reporting", from: "2.1.0"),
.package(url: "https://github.com/pointfreeco/swift-perception", "1.4.1"..<"3.0.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.4.3"),
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"),
],
targets: [
Expand Down Expand Up @@ -71,7 +71,7 @@ let package = Package(
traits: ["IdentifiedCollections"]
)
),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
.product(name: "IssueReporting", package: "swift-issue-reporting"),
.product(name: "PerceptionCore", package: "swift-perception"),
],
resources: [
Expand Down
2 changes: 1 addition & 1 deletion Package@swift-5.9.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.5.1"),
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-perception", "1.4.1"..<"3.0.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.4.3"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.13.0"),
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion Package@swift-6.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.5.1"),
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-perception", "1.4.1"..<"3.0.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.4.3"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.13.0"),
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"),
],
targets: [
Expand Down
134 changes: 134 additions & 0 deletions Package@swift-6.1.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
// swift-tools-version: 6.1

import Foundation
import PackageDescription

let package = Package(
name: "swift-sharing",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(
name: "Sharing",
targets: ["Sharing"]
)
],
traits: [
.trait(
name: "CasePaths",
description: "Derive Shared cases from Shared enums using CasePaths"
),
.trait(
name: "CustomDump",
description: "Pretty-print and diff Sharing's data types using CustomDump"
),
.trait(
name: "IdentifiedCollections",
description: "Derive Shared elements from Shared collections using IdentifiedCollections"
),
],
dependencies: [
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-case-paths", from: "1.7.3"),
.package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.3.0"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.5.1"),
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-perception", "1.4.1"..<"3.0.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.13.0"),
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"),
],
targets: [
.target(
name: "Sharing",
dependencies: [
"Sharing1",
"Sharing2",
.product(
name: "CasePaths",
package: "swift-case-paths",
condition: .when(
traits: ["CasePaths"]
)
),
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
.product(
name: "CustomDump",
package: "swift-custom-dump",
condition: .when(
traits: ["CustomDump"]
)
),
.product(name: "Dependencies", package: "swift-dependencies"),
.product(
name: "IdentifiedCollections",
package: "swift-identified-collections",
condition: .when(
traits: ["IdentifiedCollections"]
)
),
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
.product(name: "PerceptionCore", package: "swift-perception"),
],
resources: [
.process("PrivacyInfo.xcprivacy")
]
),
.testTarget(
name: "SharingTests",
dependencies: [
"Sharing",
.product(
name: "CasePaths",
package: "swift-case-paths",
condition: .when(
traits: ["CasePaths"]
)
),
.product(name: "CombineSchedulers", package: "combine-schedulers"),
.product(name: "CustomDump", package: "swift-custom-dump"),
.product(name: "DependenciesTestSupport", package: "swift-dependencies"),
],
exclude: ["Sharing.xctestplan"]
),
.target(
name: "Sharing1",
path: "Sources/VersionMarkerModules/Sharing1"
),
.target(
name: "Sharing2",
path: "Sources/VersionMarkerModules/Sharing2"
),
],
swiftLanguageModes: [.v6]
)

let enableAllTraits = ProcessInfo.processInfo.environment["SPI_GENERATE_DOCS"] != nil
package.traits.insert(
.default(
enabledTraits: Set(
enableAllTraits
? package.traits.map(\.name)
: [
"CustomDump",
"IdentifiedCollections",
]
)
)
)

for target in package.targets {
target.swiftSettings = target.swiftSettings ?? []
target.swiftSettings?.append(contentsOf: [
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("ImmutableWeakCaptures"),
.enableUpcomingFeature("InferIsolatedConformances"),
.enableUpcomingFeature("InternalImportsByDefault"),
.enableUpcomingFeature("MemberImportVisibility"),
.enableUpcomingFeature("NonisolatedNonsendingByDefault"),
])
}
Loading