diff --git a/Package.resolved b/Package.resolved index dc0397e..6807937 100644 --- a/Package.resolved +++ b/Package.resolved @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/mattpolzin/OpenAPIKit.git", "state": { "branch": null, - "revision": "0c668112f9803c1858ed070f9e8ce84922a0b41f", - "version": "3.0.0-alpha.4" + "revision": "15e39d1594b5da2b11d63f141203296d48cc5213", + "version": "3.0.0-alpha.5" } }, { @@ -24,8 +24,8 @@ "repositoryURL": "https://github.com/amzn/service-model-swift-code-generate.git", "state": { "branch": null, - "revision": "19a9564478f4f929683a36c66aa92d858dc66c8d", - "version": "3.0.0-beta.14" + "revision": "42c354dc16893d30d602bd24f8f570f20fc6206a", + "version": "3.0.0-rc.1" } }, { @@ -33,8 +33,8 @@ "repositoryURL": "https://github.com/amzn/smoke-aws-generate.git", "state": { "branch": null, - "revision": "5f694d8bd7222ef4654d67bf59fbcbcdc0e8eb00", - "version": "3.0.0-beta.10" + "revision": "8d2dcd6f7782cd76ff7c98aae58a6a515281f4d5", + "version": "3.0.0-rc.1" } }, { diff --git a/Package.swift b/Package.swift index 685d52e..539da01 100644 --- a/Package.swift +++ b/Package.swift @@ -38,8 +38,8 @@ let package = Package( targets: ["SmokeFrameworkGenerateHttp1"]), ], dependencies: [ - .package(url: "https://github.com/amzn/smoke-aws-generate.git", from: "3.0.0-beta.10"), - .package(url: "https://github.com/amzn/service-model-swift-code-generate.git", from: "3.0.0-beta.14"), + .package(url: "https://github.com/amzn/smoke-aws-generate.git", from: "3.0.0-rc.1"), + .package(url: "https://github.com/amzn/service-model-swift-code-generate.git", from: "3.0.0-rc.1"), .package(url: "https://github.com/amzn/openapi-swift-code-generate.git", from: "1.0.0-beta.1"), .package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"), ], diff --git a/Package@swift-5.5.swift b/Package@swift-5.5.swift index 1bf9a5a..466a600 100644 --- a/Package@swift-5.5.swift +++ b/Package@swift-5.5.swift @@ -30,9 +30,9 @@ let package = Package( ], dependencies: [ .package(name: "SmokeAWSGenerate", - url: "https://github.com/amzn/smoke-aws-generate.git", from: "3.0.0-beta.10"), + url: "https://github.com/amzn/smoke-aws-generate.git", from: "3.0.0-rc.1"), .package(name: "ServiceModelSwiftCodeGenerate", - url: "https://github.com/amzn/service-model-swift-code-generate.git", from: "3.0.0-beta.14"), + url: "https://github.com/amzn/service-model-swift-code-generate.git", from: "3.0.0-rc.1"), .package(url: "https://github.com/amzn/openapi-swift-code-generate.git", from: "1.0.0-beta.1"), .package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"), ], diff --git a/README.md b/README.md index fa599f1..0c04954 100644 --- a/README.md +++ b/README.md @@ -243,7 +243,7 @@ For the Client package- name: "EmptyExampleClient", dependencies: [ .target(name: "EmptyExampleModel"), .product(name: "SmokeOperationsHTTP1", package: "smoke-framework"), - .product(name: "SmokeAWSHttp", package: "smoke-aws"), + .product(name: "AWSHttp", package: "smoke-aws-support"), ], plugins: [ .plugin(name: "SmokeFrameworkGenerateClient", package: "smoke-framework-application-generate") @@ -330,7 +330,7 @@ and then as a dependency of any targets you are using the SPM plugin for. name: "EmptyExampleClient", dependencies: [ .target(name: "EmptyExampleModel"), .product(name: "SmokeOperationsHTTP1", package: "smoke-framework"), - .product(name: "SmokeAWSHttp", package: "smoke-aws"), + .product(name: "AWSHttp", package: "smoke-aws-support"), .product(name: "MyModelPackage", package: "my-model-package"), ], plugins: [ diff --git a/Sources/SmokeFrameworkCodeGeneration/ModelClientDelegate+commonAWSFunctions.swift b/Sources/SmokeFrameworkCodeGeneration/ModelClientDelegate+commonAWSFunctions.swift index e889d46..3b9c5d3 100644 --- a/Sources/SmokeFrameworkCodeGeneration/ModelClientDelegate+commonAWSFunctions.swift +++ b/Sources/SmokeFrameworkCodeGeneration/ModelClientDelegate+commonAWSFunctions.swift @@ -30,8 +30,8 @@ private struct HttpClientSignatureParameters { extension ModelClientDelegate { func addAWSClientFileHeader(fileBuilder: FileBuilder, baseName: String) { fileBuilder.appendLine(""" - import SmokeAWSCore - import SmokeAWSHttp + import AWSCore + import AWSHttp import NIO import NIOHTTP1 diff --git a/Sources/SmokeFrameworkCodeGeneration/ServiceModelCodeGenerator+generatePerInvocationContextInitializer.swift b/Sources/SmokeFrameworkCodeGeneration/ServiceModelCodeGenerator+generatePerInvocationContextInitializer.swift index 90b7231..672ac17 100644 --- a/Sources/SmokeFrameworkCodeGeneration/ServiceModelCodeGenerator+generatePerInvocationContextInitializer.swift +++ b/Sources/SmokeFrameworkCodeGeneration/ServiceModelCodeGenerator+generatePerInvocationContextInitializer.swift @@ -71,7 +71,7 @@ extension ServiceModelCodeGenerator where TargetSupportType: HTTP1IntegrationTar import SmokeHTTP1 import SmokeOperationsHTTP1 import SmokeOperationsHTTP1Server - import SmokeAWSCore + import AWSLogging import NIO typealias \(baseName)OperationDelegate = JSONPayloadHTTP1OperationDelegate @@ -161,7 +161,7 @@ extension ServiceModelCodeGenerator where TargetSupportType: HTTP1IntegrationTar import \(baseName)Operations import \(http1IntegrationTargetName) import SmokeOperationsHTTP1Server - import SmokeAWSCore + import AWSLogging import NIO /** diff --git a/Sources/SmokeFrameworkCodeGeneration/ServiceModelCodeGenerator+generateServerApplicationFiles.swift b/Sources/SmokeFrameworkCodeGeneration/ServiceModelCodeGenerator+generateServerApplicationFiles.swift index 400769e..6574d0d 100644 --- a/Sources/SmokeFrameworkCodeGeneration/ServiceModelCodeGenerator+generateServerApplicationFiles.swift +++ b/Sources/SmokeFrameworkCodeGeneration/ServiceModelCodeGenerator+generateServerApplicationFiles.swift @@ -114,13 +114,13 @@ extension ServiceModelCodeGenerator where TargetSupportType: ModelTargetSupport dependencies: [ .package(url: "https://github.com/amzn/smoke-framework.git", from: "2.7.0"), .package(url: "https://github.com/amzn/smoke-aws-credentials.git", from: "2.0.0"), - .package(url: "https://github.com/amzn/smoke-aws.git", from: "2.0.0"), + .package(url: "https://github.com/amzn/smoke-aws-support.git", from: "1.0.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"), """) if case .serverWithPlugin = generationType { fileBuilder.appendLine(""" - .package(url: "https://github.com/amzn/smoke-framework-application-generate", from: "3.0.0-beta.1") + .package(url: "https://github.com/amzn/smoke-framework-application-generate", from: "3.0.0-rc.1") """) } @@ -170,7 +170,7 @@ extension ServiceModelCodeGenerator where TargetSupportType: ModelTargetSupport name: "\(clientTargetName)", dependencies: [ .target(name: "\(modelTargetName)"), .product(name: "SmokeOperationsHTTP1", package: "smoke-framework"), - .product(name: "SmokeAWSHttp", package: "smoke-aws"), + .product(name: "AWSHttp", package: "smoke-aws-support"), """) if case .serverWithPlugin = generationType { @@ -188,6 +188,7 @@ extension ServiceModelCodeGenerator where TargetSupportType: ModelTargetSupport .target(name: "\(http1IntegrationTargetName)"), .product(name: "SmokeAWSCredentials", package: "smoke-aws-credentials"), .product(name: "SmokeOperationsHTTP1Server", package: "smoke-framework"), + .product(name: "AWSLogging", package: "smoke-aws-support"), ]), .testTarget( name: "\(baseName)OperationsTests", dependencies: [ diff --git a/Sources/SmokeFrameworkCodeGeneration/SmokeFrameworkCodeGeneration.swift b/Sources/SmokeFrameworkCodeGeneration/SmokeFrameworkCodeGeneration.swift index bb86eae..715280b 100644 --- a/Sources/SmokeFrameworkCodeGeneration/SmokeFrameworkCodeGeneration.swift +++ b/Sources/SmokeFrameworkCodeGeneration/SmokeFrameworkCodeGeneration.swift @@ -287,13 +287,13 @@ extension ServiceModelCodeGenerator where TargetSupportType: ModelTargetSupport generatorFileType = .clientGenerator } - generateClient(delegate: clientProtocolDelegate, fileType: .clientImplementation) - generateClient(delegate: mockClientDelegate, fileType: .clientImplementation) - generateClient(delegate: throwingClientDelegate, fileType: .clientImplementation) - generateClient(delegate: awsClientDelegate, fileType: .clientImplementation) - generateClient(delegate: awsClientDelegate, fileType: generatorFileType) - generateOperationsReporting() - generateInvocationsReporting() + generateAWSClient(delegate: clientProtocolDelegate, fileType: .clientImplementation) + generateAWSClient(delegate: mockClientDelegate, fileType: .clientImplementation) + generateAWSClient(delegate: throwingClientDelegate, fileType: .clientImplementation) + generateAWSClient(delegate: awsClientDelegate, fileType: .clientImplementation) + generateAWSClient(delegate: awsClientDelegate, fileType: generatorFileType) + generateAWSOperationsReporting() + generateAWSInvocationsReporting() generateModelOperationClientInput() generateModelOperationClientOutput() } else if generationType.isWithPlugin {