Skip to content

Commit

Permalink
feat: Updating to AWS SDK for Swift 0.76.0
Browse files Browse the repository at this point in the history
Also fixing Storage unit test for aborted uploads
  • Loading branch information
ruisebas committed Sep 11, 2024
1 parent 7e9c352 commit 1903145
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ enum StorageMultipartUploadBehavior {
case progressive
}

// swiftlint:disable type_body_length
class StorageMultipartUploadSession {
enum Failure: Error {
case invalidStateTransition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ class StorageMultipartUploadSessionTests: XCTestCase {
print("Progress: \(String(format: "%.2f", progress.fractionCompleted))")
case .failed(let error):
print("Error: \(error)")
XCTFail("Must not fail")
completedExp.fulfill()
case .completed:
print("Completed")
XCTFail("Must not complete")
completedExp.fulfill()
}
}
Expand Down
16 changes: 8 additions & 8 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,35 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/awslabs/aws-sdk-swift.git",
"state" : {
"revision" : "4ce6d0594c4cb73c7ef2e3b582561e1659e79746",
"version" : "0.74.0"
"revision" : "9658373d352717a7c06fab528a4a9d84747143a7",
"version" : "0.76.0"
}
},
{
"identity" : "cwlcatchexception",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattgallagher/CwlCatchException.git",
"state" : {
"revision" : "3ef6999c73b6938cc0da422f2c912d0158abb0a0",
"version" : "2.2.0"
"revision" : "07b2ba21d361c223e25e3c1e924288742923f08c",
"version" : "2.2.1"
}
},
{
"identity" : "cwlpreconditiontesting",
"kind" : "remoteSourceControl",
"location" : "https://github.com/mattgallagher/CwlPreconditionTesting.git",
"state" : {
"revision" : "2ef56b2caf25f55fa7eef8784c30d5a767550f54",
"version" : "2.2.1"
"revision" : "0139c665ebb45e6a9fbdb68aabfd7c39f3fe0071",
"version" : "2.2.2"
}
},
{
"identity" : "smithy-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/smithy-lang/smithy-swift",
"state" : {
"revision" : "6a3e98f400f4430757fb3ca5714659371f1a9525",
"version" : "0.64.0"
"revision" : "146b5b7ed87140d1ae86eccc070aa24ef8f23276",
"version" : "0.66.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let platforms: [SupportedPlatform] = [
.watchOS(.v9)
]
let dependencies: [Package.Dependency] = [
.package(url: "https://github.com/awslabs/aws-sdk-swift.git", exact: "0.74.0"),
.package(url: "https://github.com/awslabs/aws-sdk-swift.git", exact: "0.76.0"),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", exact: "0.15.3"),
.package(url: "https://github.com/mattgallagher/CwlPreconditionTesting.git", from: "2.1.0"),
.package(url: "https://github.com/aws-amplify/amplify-swift-utils-notifications.git", from: "1.1.0")
Expand Down

0 comments on commit 1903145

Please sign in to comment.