-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from num42/ios/feature/create_swift_package
Ios/feature/create swift package
- Loading branch information
Showing
3 changed files
with
19 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/.swiftpm | ||
/Package.resolved |
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ let package = Package( | |
) | ||
], | ||
dependencies: [ | ||
.package(path: "../MacroTester"), | ||
.package(url: "[email protected]:num42/swift-macrotester.git", from: "1.0.0"), | ||
// Depend on the Swift 5.9 release of SwiftSyntax | ||
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0"), | ||
.package( | ||
|
@@ -36,33 +36,31 @@ let package = Package( | |
dependencies: [ | ||
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"), | ||
.product(name: "SwiftCompilerPlugin", package: "swift-syntax") | ||
] | ||
// plugins: [.plugin(name: "SwiftLintPlugin", package: "SwiftLint")] | ||
], | ||
plugins: [.plugin(name: "SwiftLintPlugin", package: "SwiftLint")] | ||
), | ||
|
||
// Library that exposes a macro as part of its API, which is used in client programs. | ||
.target( | ||
name: "Changeable", | ||
dependencies: ["ChangeableMacros"] | ||
// plugins: [.plugin(name: "SwiftLintPlugin", package: "SwiftLint")] | ||
dependencies: ["ChangeableMacros"], | ||
plugins: [.plugin(name: "SwiftLintPlugin", package: "SwiftLint")] | ||
), | ||
|
||
// A client of the library, which is able to use the macro in its own code. | ||
.executableTarget( | ||
name: "ChangeableClient", | ||
dependencies: ["Changeable"] | ||
// plugins: [.plugin(name: "SwiftLintPlugin", package: "SwiftLint")] | ||
) | ||
|
||
dependencies: ["Changeable"], | ||
plugins: [.plugin(name: "SwiftLintPlugin", package: "SwiftLint")] | ||
), | ||
// A test target used to develop the macro implementation. | ||
// .testTarget( | ||
// name: "ChangeableTests", | ||
// dependencies: [ | ||
// "ChangeableMacros", | ||
// .product(name: "MacroTester", package: "MacroTester"), | ||
// .product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax") | ||
// ] | ||
// plugins: [.plugin(name: "SwiftLintPlugin", package: "SwiftLint")] | ||
// ) | ||
.testTarget( | ||
name: "ChangeableTests", | ||
dependencies: ["ChangeableMacros", | ||
.product(name: "MacroTester", package: "swift-macrotester"), | ||
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax") | ||
], | ||
plugins: [.plugin(name: "SwiftLintPlugin", package: "SwiftLint")] | ||
) | ||
] | ||
) |
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