Skip to content

Commit c5ea46f

Browse files
authored
Add version marker modules (#67)
1 parent 7e4ac14 commit c5ea46f

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

Package.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ let package = Package(
2929
.target(
3030
name: "Sharing",
3131
dependencies: [
32+
"Sharing1",
33+
"Sharing2",
3234
.product(name: "CombineSchedulers", package: "combine-schedulers"),
3335
.product(name: "CustomDump", package: "swift-custom-dump"),
3436
.product(name: "Dependencies", package: "swift-dependencies"),
@@ -39,6 +41,14 @@ let package = Package(
3941
resources: [
4042
.process("PrivacyInfo.xcprivacy")
4143
]
42-
)
44+
),
45+
.target(
46+
name: "Sharing1",
47+
path: "Sources/VersionMarkerModules/Sharing1"
48+
),
49+
.target(
50+
name: "Sharing2",
51+
path: "Sources/VersionMarkerModules/Sharing2"
52+
),
4353
]
4454
)

[email protected]

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ let package = Package(
2929
.target(
3030
name: "Sharing",
3131
dependencies: [
32+
"Sharing1",
33+
"Sharing2",
3234
.product(name: "CombineSchedulers", package: "combine-schedulers"),
3335
.product(name: "CustomDump", package: "swift-custom-dump"),
3436
.product(name: "Dependencies", package: "swift-dependencies"),
@@ -48,6 +50,14 @@ let package = Package(
4850
],
4951
exclude: ["Sharing.xctestplan"]
5052
),
53+
.target(
54+
name: "Sharing1",
55+
path: "Sources/VersionMarkerModules/Sharing1"
56+
),
57+
.target(
58+
name: "Sharing2",
59+
path: "Sources/VersionMarkerModules/Sharing2"
60+
),
5161
],
5262
swiftLanguageModes: [.v6]
5363
)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// The 'Sharing1' module is intentionally empty.
2+
//
3+
// It serves as an indicator which version of swift-sharing a package is building against.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// The 'Sharing2' module is intentionally empty.
2+
//
3+
// It serves as an indicator which version of swift-sharing a package is building against.

0 commit comments

Comments
 (0)