Skip to content

Commit 81a5043

Browse files
authored
chore: Require Swift 5.7, fix deprecation warnings (#600)
1 parent a98f4d5 commit 81a5043

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.5
1+
// swift-tools-version:5.7
22

33
import PackageDescription
44

@@ -13,9 +13,9 @@ let package = Package(
1313
.library(name: "SmithyTestUtil", targets: ["SmithyTestUtil"])
1414
],
1515
dependencies: [
16-
.package(url: "https://github.com/awslabs/aws-crt-swift.git", .exact("0.13.0")),
16+
.package(url: "https://github.com/awslabs/aws-crt-swift.git", exact: "0.13.0"),
1717
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
18-
.package(url: "https://github.com/MaxDesiatov/XMLCoder.git", .exact("0.17.0"))
18+
.package(url: "https://github.com/MaxDesiatov/XMLCoder.git", exact: "0.17.0")
1919
],
2020
targets: [
2121
.target(

Sources/ClientRuntime/Retries/DefaultRetryStrategy/RetryQuota.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ final actor RetryQuota {
5555

5656
/// Creates a new quota with settings from the passed options.
5757
/// - Parameter options: The retry strategy options from which to configure this retry quota
58-
convenience init(options: RetryStrategyOptions) {
58+
init(options: RetryStrategyOptions) {
5959
self.init(
6060
availableCapacity: options.availableCapacity,
6161
maxCapacity: options.maxCapacity,

Sources/ClientRuntime/Util/SwiftVersion.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,6 @@ private func swift5Version() -> String? {
4949
return "5.8"
5050
#elseif swift(>=5.7)
5151
return "5.7"
52-
#elseif swift(>=5.6)
53-
return "5.6"
54-
#elseif swift(>=5.5)
55-
return "5.5"
56-
#elseif swift(>=5.4)
57-
return "5.4"
58-
#elseif swift(>=5.3)
59-
return "5.3"
60-
#elseif swift(>=5.2)
61-
return "5.2"
62-
#elseif swift(>=5.1)
63-
return "5.1"
64-
#elseif swift(>=5.0)
65-
return "5.0"
6652
#else
6753
return nil
6854
#endif

0 commit comments

Comments
 (0)