-
Notifications
You must be signed in to change notification settings - Fork 7
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 #44 from marinofelipe/felipe/updates
Update to use SPM library
- Loading branch information
Showing
30 changed files
with
1,254 additions
and
3,245 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 |
---|---|---|
@@ -1,129 +1,119 @@ | ||
// swift-tools-version:5.3 | ||
// swift-tools-version:5.7 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "swift-package-info", | ||
platforms: [ | ||
.macOS(.v10_15) | ||
], | ||
products: [ | ||
.executable( | ||
name: "swift-package-info", | ||
targets: [ | ||
"Run" | ||
] | ||
) | ||
], | ||
dependencies: [ | ||
.package( | ||
url: "https://github.com/apple/swift-argument-parser", | ||
.upToNextMinor(from: "1.2.1") | ||
name: "swift-package-info", | ||
platforms: [ | ||
.macOS(.v12) | ||
], | ||
products: [ | ||
.executable( | ||
name: "swift-package-info", | ||
targets: [ | ||
"Run" | ||
] | ||
) | ||
], | ||
dependencies: [ | ||
.package( | ||
url: "https://github.com/apple/swift-argument-parser", | ||
.upToNextMinor(from: "1.2.1") | ||
), | ||
.package( | ||
url: "https://github.com/tuist/XcodeProj.git", | ||
.upToNextMinor(from: "8.7.1") | ||
), | ||
.package( | ||
url: "https://github.com/marinofelipe/http_client", | ||
.upToNextMinor(from: "0.0.4") | ||
), | ||
// - For now pinned to the 5.9.2 release / Xcode 15.1 | ||
// It auto exports SwiftToolsSupport, so no need to directly depend on the former 🙏 | ||
.package( | ||
url: "https://github.com/apple/swift-package-manager", | ||
revision: "swift-5.9.2-RELEASE" | ||
), | ||
], | ||
targets: [ | ||
.executableTarget( | ||
name: "Run", | ||
dependencies: [ | ||
.target(name: "App"), | ||
.target(name: "Reports"), | ||
.target(name: "Core"), | ||
.product( | ||
name: "ArgumentParser", | ||
package: "swift-argument-parser" | ||
), | ||
.package( | ||
url: "https://github.com/tuist/XcodeProj.git", | ||
.upToNextMinor(from: "8.7.1") | ||
] | ||
), | ||
.testTarget( | ||
name: "RunTests", | ||
dependencies: [ | ||
.target(name: "Run") | ||
] | ||
), | ||
.target( | ||
name: "App", | ||
dependencies: [ | ||
.product( | ||
name: "XcodeProj", | ||
package: "XcodeProj" | ||
), | ||
.package( | ||
url: "https://github.com/apple/swift-tools-support-core.git", | ||
.upToNextMinor(from: "0.4.0") | ||
.product( | ||
name: "CombineHTTPClient", | ||
package: "http_client" | ||
), | ||
.package( | ||
name: "HTTPClient", | ||
url: "https://github.com/marinofelipe/http_client", | ||
.upToNextMinor(from: "0.0.4") | ||
) | ||
], | ||
targets: [ | ||
.target( | ||
name: "Run", | ||
dependencies: [ | ||
.target(name: "App"), | ||
.target(name: "Reports"), | ||
.target(name: "Core"), | ||
.product( | ||
name: "ArgumentParser", | ||
package: "swift-argument-parser" | ||
), | ||
.product( | ||
name: "SwiftToolsSupport-auto", | ||
package: "swift-tools-support-core" | ||
) | ||
] | ||
.target(name: "Core") | ||
] | ||
), | ||
.testTarget( | ||
name: "AppTests", | ||
dependencies: [ | ||
.target(name: "App"), | ||
.target(name: "CoreTestSupport") | ||
] | ||
), | ||
.target( | ||
name: "Reports", | ||
dependencies: [ | ||
.target(name: "Core") | ||
] | ||
), | ||
.testTarget( | ||
name: "ReportsTests", | ||
dependencies: [ | ||
.target(name: "Reports"), | ||
.target(name: "CoreTestSupport") | ||
] | ||
), | ||
.target( | ||
name: "Core", | ||
dependencies: [ | ||
.product( | ||
name: "ArgumentParser", | ||
package: "swift-argument-parser" | ||
), | ||
.testTarget( | ||
name: "RunTests", | ||
dependencies: [ | ||
.target(name: "Run") | ||
] | ||
.product( | ||
name: "SwiftPM", | ||
package: "swift-package-manager" | ||
), | ||
.target( | ||
name: "App", | ||
dependencies: [ | ||
.product( | ||
name: "XcodeProj", | ||
package: "XcodeProj" | ||
), | ||
.product( | ||
name: "CombineHTTPClient", | ||
package: "HTTPClient" | ||
), | ||
.target(name: "Core") | ||
] | ||
), | ||
.testTarget( | ||
name: "AppTests", | ||
dependencies: [ | ||
.target(name: "App"), | ||
.target(name: "CoreTestSupport") | ||
] | ||
), | ||
.target( | ||
name: "Reports", | ||
dependencies: [ | ||
.product( | ||
name: "SwiftToolsSupport-auto", | ||
package: "swift-tools-support-core" | ||
), | ||
.target(name: "Core") | ||
] | ||
), | ||
.testTarget( | ||
name: "ReportsTests", | ||
dependencies: [ | ||
.target(name: "Reports"), | ||
.target(name: "CoreTestSupport") | ||
] | ||
), | ||
.target( | ||
name: "Core", | ||
dependencies: [ | ||
.product( | ||
name: "ArgumentParser", | ||
package: "swift-argument-parser" | ||
), | ||
.product( | ||
name: "SwiftToolsSupport-auto", | ||
package: "swift-tools-support-core" | ||
) | ||
] | ||
), | ||
.testTarget( | ||
name: "CoreTests", | ||
dependencies: [ | ||
.target(name: "Core"), | ||
.target(name: "CoreTestSupport") | ||
], | ||
resources: [ | ||
.process("Resources") | ||
] | ||
), | ||
.target( | ||
name: "CoreTestSupport", | ||
dependencies: [ | ||
.target(name: "Core") | ||
] | ||
) | ||
] | ||
] | ||
), | ||
.testTarget( | ||
name: "CoreTests", | ||
dependencies: [ | ||
.target(name: "Core"), | ||
.target(name: "CoreTestSupport") | ||
] | ||
), | ||
.target( | ||
name: "CoreTestSupport", | ||
dependencies: [ | ||
.target(name: "Core") | ||
] | ||
) | ||
] | ||
) |
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.