-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): add Foundation HTTP client for watchOS / tvOS #3230
Merged
Conversation
This file contains 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
atierian
force-pushed
the
foundation-http-client
branch
from
September 20, 2023 18:54
13c06ce
to
a9e7ad8
Compare
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:16 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 20, 2023 19:17 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 16:09 — with
GitHub Actions
Inactive
atierian
had a problem deploying
to
IntegrationTest
September 21, 2023 16:09 — with
GitHub Actions
Failure
atierian
had a problem deploying
to
IntegrationTest
September 21, 2023 16:09 — with
GitHub Actions
Failure
atierian
had a problem deploying
to
IntegrationTest
September 21, 2023 16:09 — with
GitHub Actions
Failure
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
atierian
temporarily deployed
to
IntegrationTest
September 21, 2023 17:24 — with
GitHub Actions
Inactive
phantumcode
added a commit
that referenced
this pull request
Sep 21, 2023
* main: fix(core): add Foundation HTTP client for watchOS / tvOS (#3230) chore: finalize release 2.18.0 [skip ci] chore: release 2.18.0 [skip ci] feat: Setting mininum watchOS version to 9 (#3229) change swift-tools-version to 5.7 (#3193) chore: finalize release 2.17.2 [skip ci] chore: release 2.17.2 [skip ci] fix(datastore): use unwrapped storageEngine to perform datastore operations (#3204) fix(datastore): using URLProtocol monitor auth request headers (#3221) ci: add dependency review workflow (#3132) fix(api): change request interceptors applying logic (#3190)
phantumcode
added a commit
that referenced
this pull request
Sep 26, 2023
* main: chore(ci): update dependency review config file path (#3233) test(logging): add logging plugin integration test (#3218) chore: remove unnecessary CloudWatch dependency from logger plugin (#3235) chore: Update CHANGELOG.md for 2.18.0 (#3236) chore: finalize release 2.18.1 [skip ci] chore: release 2.18.1 [skip ci] fix(core): add Foundation HTTP client for watchOS / tvOS (#3230) chore: finalize release 2.18.0 [skip ci] chore: release 2.18.0 [skip ci] fix(datastore): call errorHandler in Sync operation when failure feat: Setting mininum watchOS version to 9 (#3229) change swift-tools-version to 5.7 (#3193) chore: finalize release 2.17.2 [skip ci] chore: release 2.17.2 [skip ci] fix(datastore): use unwrapped storageEngine to perform datastore operations (#3204)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #
Description
Network requests that Amplify makes to services through the AWS SDK for Swift end up going through AWS Common Runtime (CRT) rather than
Foundation
.This is fine for iOS, macOS, watchOS, and tvOS when running on Simulator.
It's also fine for physical devices running iOS, macOS, and tvOS.
However, the CRT networking layer doesn't play nice with watchOS running on physical Apple Watches.
This change utilizes the
HttpClientEngine
that can be injected into service clients in the AWS SDK for Swift.If running on watchOS or tvOS, we'll use
Foundation
for networking instead of CRT.Why tvOS?
As of today, CRT works when running on physical Apple TVs. However, tvOS isn't officially supported by AWS SDK for Swift and we don't have a good way to test against hardware related regressions. For that reason, we're using Foundation for tvOS as well.
Plugin Overview
SDK clients used by plugins that are now using
FoundationClientEngine
for watchOS and tvOSAWSCognitoAuthPlugin
CognitoIdentityProviderClient
CognitoIdentityClient
AWSLocationGeoPlugin
LocationClient
AWSPinpointAnalyticsPlugin / AWSPinpointPushNotificationsPlugin
PinpointClient
in InternalAWSPinpointAWSCloudWatchLoggingPlugin
CloudWatchLogsClient
AWSPredictionsPlugin
TranslateClient
PollyClient
ComprehendClient
RekognitionClient
TextractClient
General Checklist
Documentation update for the change if requiredGiven When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
If breaking change, documentation/changelog update with migration instructionsBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.