generated from dankinsoid/iOSLibraryTemplate
-
-
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.
- Loading branch information
1 parent
1aaf05a
commit 0e900a0
Showing
9 changed files
with
915 additions
and
91 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
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 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,52 @@ | ||
// swift-tools-version:5.9 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import CompilerPluginSupport | ||
import PackageDescription | ||
|
||
var package = Package( | ||
name: "swift-api-client", | ||
platforms: [ | ||
.macOS(.v10_15), | ||
.iOS(.v13), | ||
.watchOS(.v5), | ||
.tvOS(.v13), | ||
], | ||
products: [ | ||
.library(name: "SwiftAPIClient", targets: ["SwiftAPIClient"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.3"), | ||
.package(url: "https://github.com/apple/swift-http-types.git", from: "1.0.3"), | ||
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.2"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "SwiftAPIClient", | ||
dependencies: [ | ||
.target(name: "SwiftAPIClientMacros"), | ||
.product(name: "Logging", package: "swift-log"), | ||
.product(name: "HTTPTypes", package: "swift-http-types"), | ||
.product(name: "HTTPTypesFoundation", package: "swift-http-types"), | ||
] | ||
), | ||
.testTarget( | ||
name: "SwiftAPIClientTests", | ||
dependencies: [.target(name: "SwiftAPIClient")] | ||
), | ||
.macro( | ||
name: "SwiftAPIClientMacros", | ||
dependencies: [ | ||
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"), | ||
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"), | ||
] | ||
), | ||
.testTarget( | ||
name: "SwiftAPIClientMacrosTests", | ||
dependencies: [ | ||
.target(name: "SwiftAPIClientMacros"), | ||
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax") | ||
] | ||
), | ||
] | ||
) |
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
Oops, something went wrong.