Skip to content

Commit f9339dc

Browse files
authored
Revert "chore: reduce number of extensions to speed up builds (#151)" (#157)
This reverts commit 603e181.
1 parent 7599116 commit f9339dc

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

AWSClientRuntime/Sources/Http/AWSUserAgentMetadata.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public struct AWSUserAgentMetadata {
2525
/// (framework-metadata RWS)
2626
/// [appId]
2727
var xAmzUserAgent: String {
28-
// TODO: add feat-metadata, config-metadata, framework-metadata (Amplify?) and appId
28+
//TODO: add feat-metadata, config-metadata, framework-metadata (Amplify?) and appId
2929
guard let executionEnvMetadata = executionEnvMetadata else {
3030
return "\(sdkMetadata) \(apiMetadata) \(osMetadata) \(languageMetadata)"
3131
}
@@ -51,7 +51,7 @@ public struct AWSUserAgentMetadata {
5151

5252
public static func fromEnv(apiMetadata: APIMetadata) -> AWSUserAgentMetadata {
5353
let sdkMetadata = SDKMetadata(name: "swift", version: apiMetadata.version)
54-
// TODO: figure out a better way to get both current OS and version of that OS
54+
//TODO: figure out a better way to get both current OS and version of that OS
5555
let osMetadata = OSMetadata(family: currentOS, version: nil)
5656
let langMetadata = LanguageMetadata(version: swiftVersion)
5757
return AWSUserAgentMetadata(sdkMetadata: sdkMetadata,

AWSClientRuntime/Sources/Middlewares/RetrierMiddleware.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public struct RetrierMiddleware<Output: HttpResponseBinding,
5757
if retrier.isErrorRetryable(error: error) {
5858
let errorType = retrier.getErrorType(error: error)
5959
let newToken = try retrier.scheduleRetry(token: token, error: errorType)
60-
// TODO: rewind the stream once streaming is properly implemented
60+
//TODO: rewind the stream once streaming is properly implemented
6161
return try tryRequest(token: newToken, partitionId: partitionId, context: context, input: input, next: next)
6262
} else {
6363
return serviceResponse

codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/awsjson/AWSJsonHttpResponseBindingErrorGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AWSJsonHttpResponseBindingErrorGenerator : HttpResponseBindingErrorGenerat
1717
val operationErrorName = "${op.capitalizedName()}OutputError"
1818
val rootNamespace = ctx.settings.moduleName
1919
val httpBindingSymbol = Symbol.builder()
20-
.definitionFile("./$rootNamespace/models/$operationErrorName+Extensions.swift")
20+
.definitionFile("./$rootNamespace/models/$operationErrorName+HttpResponseBinding.swift")
2121
.name(operationErrorName)
2222
.build()
2323

codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/httpResponse/AWSEc2QueryHttpResponseBindingErrorGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AWSEc2QueryHttpResponseBindingErrorGenerator : HttpResponseBindingErrorGen
1313
val operationErrorName = "${op.capitalizedName()}OutputError"
1414
val rootNamespace = ctx.settings.moduleName
1515
val httpBindingSymbol = Symbol.builder()
16-
.definitionFile("./$rootNamespace/models/$operationErrorName+Extensions.swift")
16+
.definitionFile("./$rootNamespace/models/$operationErrorName+HttpResponseBinding.swift")
1717
.name(operationErrorName)
1818
.build()
1919

codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restjson/AWSRestJson1HttpResponseBindingErrorGeneratable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AWSRestJson1HttpResponseBindingErrorGeneratable : HttpResponseBindingError
1313
val operationErrorName = "${op.capitalizedName()}OutputError"
1414
val rootNamespace = ctx.settings.moduleName
1515
val httpBindingSymbol = Symbol.builder()
16-
.definitionFile("./$rootNamespace/models/$operationErrorName+Extensions.swift")
16+
.definitionFile("./$rootNamespace/models/$operationErrorName+HttpResponseBinding.swift")
1717
.name(operationErrorName)
1818
.build()
1919

codegen/smithy-aws-swift-codegen/src/main/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AWSRestXMLHttpResponseBindingErrorGenerator : HttpResponseBindingErrorGene
1313
val operationErrorName = "${op.capitalizedName()}OutputError"
1414
val rootNamespace = ctx.settings.moduleName
1515
val httpBindingSymbol = Symbol.builder()
16-
.definitionFile("./$rootNamespace/models/$operationErrorName+Extensions.swift")
16+
.definitionFile("./$rootNamespace/models/$operationErrorName+HttpResponseBinding.swift")
1717
.name(operationErrorName)
1818
.build()
1919

codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/RestJsonProtocolGeneratorTests.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RestJsonProtocolGeneratorTests {
1818
@Test
1919
fun `define coding keys for unbound document payload members`() {
2020
val context = setupTests("http-binding-protocol-generator-test.smithy", "com.test#Example")
21-
val contents = getModelFileContents("Example", "SmokeTestInput+Extensions.swift", context.manifest)
21+
val contents = getModelFileContents("Example", "SmokeTestInput+Encodable.swift", context.manifest)
2222
contents.shouldSyntacticSanityCheck()
2323
val expectedContents =
2424
"""
@@ -49,7 +49,7 @@ class RestJsonProtocolGeneratorTests {
4949
@Test
5050
fun `define coding keys for payload member`() {
5151
val context = setupTests("http-binding-protocol-generator-test.smithy", "com.test#Example")
52-
val contents = getModelFileContents("Example", "ExplicitBlobInput+Extensions.swift", context.manifest)
52+
val contents = getModelFileContents("Example", "ExplicitBlobInput+Encodable.swift", context.manifest)
5353
contents.shouldSyntacticSanityCheck()
5454
val expectedContents =
5555
"""

codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/ec2query/Ec2QueryHttpResponseBindingErrorGeneratorTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Ec2QueryHttpResponseBindingErrorGeneratorTests {
2828
@Test
2929
fun `002 GreetingWithErrorsOutputError+HttpResponseBinding has with correct cases`() {
3030
val context = setupTests("ec2query/query-error.smithy", "aws.protocoltests.ec2#AwsEc2")
31-
val contents = TestContextGenerator.getFileContents(context.manifest, "/Example/models/GreetingWithErrorsOutputError+Extensions.swift")
31+
val contents = TestContextGenerator.getFileContents(context.manifest, "/Example/models/GreetingWithErrorsOutputError+HttpResponseBinding.swift")
3232
contents.shouldSyntacticSanityCheck()
3333
val expectedContents =
3434
"""

codegen/smithy-aws-swift-codegen/src/test/kotlin/software/amazon/smithy/aws/swift/codegen/restxml/AWSRestXMLHttpResponseBindingErrorGeneratorTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class AWSRestXMLHttpResponseBindingErrorGeneratorTests {
2929
@Test
3030
fun `002 GreetingWithErrorsOutputError+HttpResponseBinding`() {
3131
val context = setupTests("restxml/xml-errors.smithy", "aws.protocoltests.restxml#RestXml")
32-
val contents = getFileContents(context.manifest, "/Example/models/GreetingWithErrorsOutputError+Extensions.swift")
32+
val contents = getFileContents(context.manifest, "/Example/models/GreetingWithErrorsOutputError+HttpResponseBinding.swift")
3333
contents.shouldSyntacticSanityCheck()
3434
val expectedContents =
3535
"""

0 commit comments

Comments
 (0)