-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overhaul of the injection utility to better fit my needs
- Loading branch information
1 parent
0348fd8
commit ce340a1
Showing
10 changed files
with
581 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,38 @@ | ||
// swift-tools-version:5.10 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import CompilerPluginSupport | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Injection", | ||
platforms: [.iOS(.v13), .macOS(.v12), .watchOS(.v6), .tvOS(.v13)], | ||
platforms: [.iOS(.v13), .macOS(.v12), .watchOS(.v6), .tvOS(.v13), .visionOS(.v1)], | ||
products: [ | ||
.library(name: "Injection", targets: ["Injection"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-syntax", from: "510.0.0"), | ||
], | ||
targets: [ | ||
.target(name: "Injection", dependencies: [], path: "Sources"), | ||
.testTarget(name: "InjectionTests", dependencies: ["Injection"], path: "Tests"), | ||
.macro( | ||
name: "InjectionMacroImpl", | ||
dependencies: [ | ||
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"), | ||
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"), | ||
], | ||
path: "Sources/InjectionMacroImpl" | ||
), | ||
|
||
.target(name: "Injection", dependencies: ["InjectionMacroImpl"], path: "Sources/Main"), | ||
|
||
.testTarget( | ||
name: "InjectionTests", | ||
dependencies: [ | ||
"Injection", | ||
"InjectionMacroImpl", | ||
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"), | ||
], | ||
path: "Tests" | ||
), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.