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

Commit

Permalink
feat: Derive macro declarations into a separate target
Browse files Browse the repository at this point in the history
  • Loading branch information
maximkrouk committed Jan 30, 2024
1 parent 1fbed23 commit be9a4cd
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 262 deletions.
53 changes: 0 additions & 53 deletions .swiftpm/xcode/xcshareddata/xcschemes/InterceptionTests.xcscheme

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Interception"
BuildableName = "Interception"
BlueprintName = "Interception"
BlueprintIdentifier = "_InterceptionMacrosDeclarations"
BuildableName = "_InterceptionMacrosDeclarations"
BlueprintName = "_InterceptionMacrosDeclarations"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
Expand Down Expand Up @@ -49,9 +49,9 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Interception"
BuildableName = "Interception"
BlueprintName = "Interception"
BlueprintIdentifier = "_InterceptionMacrosDeclarations"
BuildableName = "_InterceptionMacrosDeclarations"
BlueprintName = "_InterceptionMacrosDeclarations"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

17 changes: 15 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ let package = Package(
name: "InterceptionMacros",
type: .static,
targets: ["InterceptionMacros"]
),
.library(
name: "_InterceptionMacrosDeclarations",
type: .static,
targets: ["_InterceptionMacrosDeclarations"]
)
],
dependencies: [
.package(
url: "https://github.com/capturecontext/swift-interception.git",
.upToNextMinor(from: "0.1.0")
.upToNextMinor(from: "0.2.0")
),
.package(
url: "https://github.com/stackotter/swift-macro-toolkit.git",
Expand All @@ -45,9 +50,17 @@ let package = Package(
),

.target(
name: "InterceptionMacros",
name: "_InterceptionMacrosDeclarations",
dependencies: [
.target(name: "_InterceptionMacros"),
.product(name: "_InterceptionCustomSelectors", package: "swift-interception")
]
),

.target(
name: "InterceptionMacros",
dependencies: [
.target(name: "_InterceptionMacrosDeclarations"),
.product(name: "Interception", package: "swift-interception")
]
),
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ If you use SwiftPM for your project, you can add CombineInterception to your pac
```swift
.package(
url: "https://github.com/capturecontext/swift-interception-macros.git",
.upToNextMinor(from: "0.1.0")
.upToNextMinor(from: "0.2.0")
)
```

Expand Down
1 change: 1 addition & 0 deletions Sources/InterceptionMacros/Exports.swift
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@_exported import Interception
@_exported import _InterceptionMacrosDeclarations
Loading

0 comments on commit be9a4cd

Please sign in to comment.