diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/InterceptionTests.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/InterceptionTests.xcscheme
deleted file mode 100644
index 2c211d8..0000000
--- a/.swiftpm/xcode/xcshareddata/xcschemes/InterceptionTests.xcscheme
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/Interception.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/_InterceptionMacrosDeclarations.xcscheme
similarity index 83%
rename from .swiftpm/xcode/xcshareddata/xcschemes/Interception.xcscheme
rename to .swiftpm/xcode/xcshareddata/xcschemes/_InterceptionMacrosDeclarations.xcscheme
index 56e193c..05d8170 100644
--- a/.swiftpm/xcode/xcshareddata/xcschemes/Interception.xcscheme
+++ b/.swiftpm/xcode/xcshareddata/xcschemes/_InterceptionMacrosDeclarations.xcscheme
@@ -14,9 +14,9 @@
buildForAnalyzing = "YES">
@@ -49,9 +49,9 @@
diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionCustomSelectors.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionCustomSelectors.xcscheme
deleted file mode 100644
index 1695afb..0000000
--- a/.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionCustomSelectors.xcscheme
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionCustomSelectorsMacrosTests.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionCustomSelectorsMacrosTests.xcscheme
deleted file mode 100644
index 352ae6c..0000000
--- a/.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionCustomSelectorsMacrosTests.xcscheme
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionUtils.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionUtils.xcscheme
deleted file mode 100644
index 2127e55..0000000
--- a/.swiftpm/xcode/xcshareddata/xcschemes/_SwiftInterceptionUtils.xcscheme
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Package.swift b/Package.swift
index b70c1aa..34ae40c 100644
--- a/Package.swift
+++ b/Package.swift
@@ -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",
@@ -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")
]
),
diff --git a/README.md b/README.md
index 8344abb..4237f4e 100644
--- a/README.md
+++ b/README.md
@@ -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")
)
```
diff --git a/Sources/InterceptionMacros/Exports.swift b/Sources/InterceptionMacros/Exports.swift
index a731c32..fe8ad13 100644
--- a/Sources/InterceptionMacros/Exports.swift
+++ b/Sources/InterceptionMacros/Exports.swift
@@ -1 +1,2 @@
@_exported import Interception
+@_exported import _InterceptionMacrosDeclarations
diff --git a/Sources/InterceptionMacros/Macros.swift b/Sources/_InterceptionMacrosDeclarations/Macros.swift
similarity index 63%
rename from Sources/InterceptionMacros/Macros.swift
rename to Sources/_InterceptionMacrosDeclarations/Macros.swift
index 9d12dee..021e148 100644
--- a/Sources/InterceptionMacros/Macros.swift
+++ b/Sources/_InterceptionMacrosDeclarations/Macros.swift
@@ -1,5 +1,10 @@
-import _InterceptionsMacros
import Foundation
+import _InterceptionCustomSelectors
+
+// In case some linker bug won't let
+// macros to be linked
+#if canImport(_InterceptionMacros)
+import _InterceptionMacros
// MARK: - PropertySelectors
@@ -7,13 +12,13 @@ import Foundation
public macro propertySelector(
_: KeyPath