Skip to content

Commit

Permalink
Swift 5.8 (#72)
Browse files Browse the repository at this point in the history
* Swift 5.8

* Minimum required swift version is 5.6

* Replace _SotoSendable with Sendable
  • Loading branch information
adam-fowler authored Apr 14, 2023
1 parent 8fad5a4 commit 7e8e10d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 86 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
strategy:
matrix:
tag:
- swift:5.5
- swift:5.6
- swift:5.7
- swift:5.8
container:
image: ${{ matrix.tag }}
steps:
Expand Down
39 changes: 0 additions & 39 deletions [email protected]

This file was deleted.

39 changes: 0 additions & 39 deletions [email protected]

This file was deleted.

4 changes: 0 additions & 4 deletions Sources/SotoCodeGeneratorLib/Templates/api+async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ extension Templates {
{{%CONTENT_TYPE:TEXT}}
{{>header}}
#if compiler(>=5.5.2) && canImport(_Concurrency)
import SotoCore
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
Expand Down Expand Up @@ -68,7 +66,5 @@ extension Templates {
{{>waiters_async}}
{{/waiters}}
#endif // compiler(>=5.5.2) && canImport(_Concurrency)
"""
}
4 changes: 2 additions & 2 deletions Sources/SotoCodeGeneratorLib/Templates/enum.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extension Templates {
static let enumTemplate = """
{{%CONTENT_TYPE:TEXT}}
{{#isExtensible}}
{{scope}} struct {{name}}: RawRepresentable, Equatable, Codable, _SotoSendable {
{{scope}} struct {{name}}: RawRepresentable, Equatable, Codable, Sendable {
{{scope}} var rawValue: String
{{scope}} init(rawValue: String) {
Expand All @@ -32,7 +32,7 @@ extension Templates {
}
{{/isExtensible}}
{{^isExtensible}}
{{scope}} enum {{name}}: String, CustomStringConvertible, Codable, _SotoSendable {
{{scope}} enum {{name}}: String, CustomStringConvertible, Codable, Sendable {
{{#values}}
{{#documentation}}
{{>comment}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extension Templates {
static let enumWithValuesTemplate = #"""
{{! Template for a AWSShape enum with values }}
{{%CONTENT_TYPE:TEXT}}
{{scope}} {{object}} {{name}}: {{shapeProtocol}}, _SotoSendable {
{{scope}} {{object}} {{name}}: {{shapeProtocol}}, Sendable {
{{#namespace}}
{{scope}} static let _xmlNamespace: String? = "{{.}}"
{{/namespace}}
Expand Down

0 comments on commit 7e8e10d

Please sign in to comment.