Skip to content

Commit

Permalink
1.x: Add version marker modules (#66)
Browse files Browse the repository at this point in the history
* 1.x: Add version marker modules

* Update Package.swift
  • Loading branch information
stephencelis authored Jan 7, 2025
1 parent dbcd9d4 commit 55d2fef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ let package = Package(
.target(
name: "Sharing",
dependencies: [
"Sharing1",
.product(name: "CombineSchedulers", package: "combine-schedulers"),
.product(name: "CustomDump", package: "swift-custom-dump"),
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
Expand All @@ -42,5 +43,9 @@ let package = Package(
.process("PrivacyInfo.xcprivacy")
]
),
.target(
name: "Sharing1",
path: "Sources/VersionMarkerModules/Sharing1"
),
]
)
5 changes: 5 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ let package = Package(
.target(
name: "Sharing",
dependencies: [
"Sharing1",
.product(name: "CombineSchedulers", package: "combine-schedulers"),
.product(name: "CustomDump", package: "swift-custom-dump"),
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
Expand All @@ -50,6 +51,10 @@ let package = Package(
],
exclude: ["Sharing.xctestplan"]
),
.target(
name: "Sharing1",
path: "Sources/VersionMarkerModules/Sharing1"
),
],
swiftLanguageModes: [.v6]
)
3 changes: 3 additions & 0 deletions Sources/VersionMarkerModules/Sharing1/Empty.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// The 'Sharing1' module is intentionally empty.
//
// It serves as an indicator which version of swift-sharing a package is building against.

0 comments on commit 55d2fef

Please sign in to comment.