Skip to content
Merged
20 changes: 17 additions & 3 deletions swift/example_code/s3/presigned-urls/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,31 @@ let package = Package(
.package(
url: "https://github.com/apple/swift-argument-parser.git",
branch: "main"
),
.package(
url: "https://github.com/swift-server/async-http-client.git",
from: "1.9.0"
)
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
// Targets can depend on other targets in this package and products
// from dependencies.
.executableTarget(
name: "presigned",
name: "presigned-download",
dependencies: [
.product(name: "AWSS3", package: "aws-sdk-swift"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
],
path: "Sources")
path: "Sources/presigned-download"),
.executableTarget(
name: "presigned-upload",
dependencies: [
.product(name: "AWSS3", package: "aws-sdk-swift"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "AsyncHTTPClient", package: "async-http-client")
],
path: "Sources/presigned-upload")

]
)

This file was deleted.

Loading
Loading