Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add advanced presigning example #7065

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
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