Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit be9a4cd

Browse files
committed
feat: Derive macro declarations into a separate target
1 parent 1fbed23 commit be9a4cd

11 files changed

+43
-262
lines changed

.swiftpm/xcode/xcshareddata/xcschemes/InterceptionTests.xcscheme

-53
This file was deleted.

.swiftpm/xcode/xcshareddata/xcschemes/Interception.xcscheme .swiftpm/xcode/xcshareddata/xcschemes/_InterceptionMacrosDeclarations.xcscheme

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
buildForAnalyzing = "YES">
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "Interception"
18-
BuildableName = "Interception"
19-
BlueprintName = "Interception"
17+
BlueprintIdentifier = "_InterceptionMacrosDeclarations"
18+
BuildableName = "_InterceptionMacrosDeclarations"
19+
BlueprintName = "_InterceptionMacrosDeclarations"
2020
ReferencedContainer = "container:">
2121
</BuildableReference>
2222
</BuildActionEntry>
@@ -49,9 +49,9 @@
4949
<MacroExpansion>
5050
<BuildableReference
5151
BuildableIdentifier = "primary"
52-
BlueprintIdentifier = "Interception"
53-
BuildableName = "Interception"
54-
BlueprintName = "Interception"
52+
BlueprintIdentifier = "_InterceptionMacrosDeclarations"
53+
BuildableName = "_InterceptionMacrosDeclarations"
54+
BlueprintName = "_InterceptionMacrosDeclarations"
5555
ReferencedContainer = "container:">
5656
</BuildableReference>
5757
</MacroExpansion>

.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionCustomSelectors.xcscheme

-66
This file was deleted.

.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionCustomSelectorsMacrosTests.xcscheme

-53
This file was deleted.

.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionUtils.xcscheme

-66
This file was deleted.

Package.swift

+15-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,17 @@ let package = Package(
1717
name: "InterceptionMacros",
1818
type: .static,
1919
targets: ["InterceptionMacros"]
20+
),
21+
.library(
22+
name: "_InterceptionMacrosDeclarations",
23+
type: .static,
24+
targets: ["_InterceptionMacrosDeclarations"]
2025
)
2126
],
2227
dependencies: [
2328
.package(
2429
url: "https://github.com/capturecontext/swift-interception.git",
25-
.upToNextMinor(from: "0.1.0")
30+
.upToNextMinor(from: "0.2.0")
2631
),
2732
.package(
2833
url: "https://github.com/stackotter/swift-macro-toolkit.git",
@@ -45,9 +50,17 @@ let package = Package(
4550
),
4651

4752
.target(
48-
name: "InterceptionMacros",
53+
name: "_InterceptionMacrosDeclarations",
4954
dependencies: [
5055
.target(name: "_InterceptionMacros"),
56+
.product(name: "_InterceptionCustomSelectors", package: "swift-interception")
57+
]
58+
),
59+
60+
.target(
61+
name: "InterceptionMacros",
62+
dependencies: [
63+
.target(name: "_InterceptionMacrosDeclarations"),
5164
.product(name: "Interception", package: "swift-interception")
5265
]
5366
),

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ If you use SwiftPM for your project, you can add CombineInterception to your pac
5252
```swift
5353
.package(
5454
url: "https://github.com/capturecontext/swift-interception-macros.git",
55-
.upToNextMinor(from: "0.1.0")
55+
.upToNextMinor(from: "0.2.0")
5656
)
5757
```
5858

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
@_exported import Interception
2+
@_exported import _InterceptionMacrosDeclarations

0 commit comments

Comments
 (0)