This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Copyright Amazon.com Inc. or its affiliates. | |
| // All Rights Reserved. | |
| // | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // | |
| import AWSCognitoAuthPlugin | |
| import AWSCore | |
| import AWSPluginsCore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Copyright Amazon.com Inc. or its affiliates. | |
| // All Rights Reserved. | |
| // | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // | |
| /// Convenience struct for extracting Amplify configuration from an application's bundle. | |
| /// | |
| /// Usage example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Copyright Amazon.com Inc. or its affiliates. | |
| // All Rights Reserved. | |
| // | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // | |
| import AWSPluginsCore | |
| import AWSS3 | |
| import AWSS3StoragePlugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ClientRuntime | |
| import Foundation | |
| /// FoundationHttpClientEngine conforming to | |
| /// [HttpClientEngine](x-source-tag://HttpClientEngine) | |
| extension FoundationHttpClientEngine: HttpClientEngine { | |
| func execute(request: ClientRuntime.SdkHttpRequest) async throws -> ClientRuntime.HttpResponse { | |
| let urlRequest = try self.request(for: request) | |
| let (data, response) = try await URLSession.shared.upload(for: urlRequest, from: urlRequest.httpBody ?? Data()) | |
| guard let http = response as? HTTPURLResponse else { |