-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SwiftPM support for the 5.x versions.
Document the resources support that isn't working in SwiftPM 5.3, and create the version specific files that will be needed to eventually use it. Progress on #192
- Loading branch information
Showing
3 changed files
with
190 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// swift-tools-version:5.1 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "GTMSessionFetcher", | ||
products: [ | ||
.library( | ||
name: "GTMSessionFetcher", | ||
targets: ["GTMSessionFetcherCore", "GTMSessionFetcherFull"] | ||
), | ||
.library( | ||
name: "GTMSessionFetcherCore", | ||
targets: ["GTMSessionFetcherCore"] | ||
), | ||
.library( | ||
name: "GTMSessionFetcherFull", | ||
targets: ["GTMSessionFetcherFull"] | ||
), | ||
.library( | ||
name: "GTMSessionFetcherLogView", | ||
targets: ["GTMSessionFetcherLogView"] | ||
) | ||
], | ||
targets: [ | ||
.target( | ||
name: "GTMSessionFetcherCore", | ||
path: "Source", | ||
sources:[ | ||
"GTMSessionFetcher.h", | ||
"GTMSessionFetcher.m", | ||
"GTMSessionFetcherLogging.h", | ||
"GTMSessionFetcherLogging.m", | ||
"GTMSessionFetcherService.h", | ||
"GTMSessionFetcherService.m", | ||
"GTMSessionUploadFetcher.h", | ||
"GTMSessionUploadFetcher.m" | ||
], | ||
publicHeadersPath: "SwiftPackage" | ||
), | ||
.target( | ||
name: "GTMSessionFetcherFull", | ||
dependencies: ["GTMSessionFetcherCore"], | ||
path: "Source", | ||
sources: [ | ||
"GTMGatherInputStream.h", | ||
"GTMGatherInputStream.m", | ||
"GTMMIMEDocument.h", | ||
"GTMMIMEDocument.m", | ||
"GTMReadMonitorInputStream.h", | ||
"GTMReadMonitorInputStream.m", | ||
], | ||
publicHeadersPath: "SwiftPackage" | ||
), | ||
.target( | ||
name: "GTMSessionFetcherLogView", | ||
dependencies: ["GTMSessionFetcherCore"], | ||
path: "Source", | ||
sources: [ | ||
"GTMSessionFetcherLogViewController.h", | ||
"GTMSessionFetcherLogViewController.m" | ||
], | ||
publicHeadersPath: "SwiftPackage" | ||
), | ||
.testTarget( | ||
name: "GTMSessionFetcherCoreTests", | ||
dependencies: ["GTMSessionFetcherFull", "GTMSessionFetcherCore"], | ||
path: "Source/UnitTests" | ||
// Resources hot wired in the source file themselves. | ||
) | ||
] | ||
) |
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,72 @@ | ||
// swift-tools-version:5.2 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "GTMSessionFetcher", | ||
products: [ | ||
.library( | ||
name: "GTMSessionFetcher", | ||
targets: ["GTMSessionFetcherCore", "GTMSessionFetcherFull"] | ||
), | ||
.library( | ||
name: "GTMSessionFetcherCore", | ||
targets: ["GTMSessionFetcherCore"] | ||
), | ||
.library( | ||
name: "GTMSessionFetcherFull", | ||
targets: ["GTMSessionFetcherFull"] | ||
), | ||
.library( | ||
name: "GTMSessionFetcherLogView", | ||
targets: ["GTMSessionFetcherLogView"] | ||
) | ||
], | ||
targets: [ | ||
.target( | ||
name: "GTMSessionFetcherCore", | ||
path: "Source", | ||
sources:[ | ||
"GTMSessionFetcher.h", | ||
"GTMSessionFetcher.m", | ||
"GTMSessionFetcherLogging.h", | ||
"GTMSessionFetcherLogging.m", | ||
"GTMSessionFetcherService.h", | ||
"GTMSessionFetcherService.m", | ||
"GTMSessionUploadFetcher.h", | ||
"GTMSessionUploadFetcher.m" | ||
], | ||
publicHeadersPath: "SwiftPackage" | ||
), | ||
.target( | ||
name: "GTMSessionFetcherFull", | ||
dependencies: ["GTMSessionFetcherCore"], | ||
path: "Source", | ||
sources: [ | ||
"GTMGatherInputStream.h", | ||
"GTMGatherInputStream.m", | ||
"GTMMIMEDocument.h", | ||
"GTMMIMEDocument.m", | ||
"GTMReadMonitorInputStream.h", | ||
"GTMReadMonitorInputStream.m", | ||
], | ||
publicHeadersPath: "SwiftPackage" | ||
), | ||
.target( | ||
name: "GTMSessionFetcherLogView", | ||
dependencies: ["GTMSessionFetcherCore"], | ||
path: "Source", | ||
sources: [ | ||
"GTMSessionFetcherLogViewController.h", | ||
"GTMSessionFetcherLogViewController.m" | ||
], | ||
publicHeadersPath: "SwiftPackage" | ||
), | ||
.testTarget( | ||
name: "GTMSessionFetcherCoreTests", | ||
dependencies: ["GTMSessionFetcherFull", "GTMSessionFetcherCore"], | ||
path: "Source/UnitTests" | ||
// Resources hot wired in the source file themselves. | ||
) | ||
] | ||
) |