Skip to content
This repository was archived by the owner on Jul 25, 2025. It is now read-only.

Commit a74b56e

Browse files
authored
chore: update SDK to 2.30.1 and AppSyncRTClient to 3.0.0 (#561)
* chore: update SDK to 2.30.1 * chore: update AppSyncRTClient to 2.30.1
1 parent ea22da2 commit a74b56e

File tree

138 files changed

+8960
-5852
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+8960
-5852
lines changed

AWSAppSync.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Pod::Spec.new do |s|
1111
s.ios.deployment_target = '9.0'
1212
s.swift_version = '5.5.2'
1313

14-
s.dependency 'AWSCore', '~> 2.27.0'
14+
s.dependency 'AWSCore', '~> 2.30.1'
1515
s.dependency 'SQLite.swift', '~> 0.12.2'
1616
s.dependency 'ReachabilitySwift', '5.0.0'
17-
s.dependency 'AppSyncRealTimeClient', '~> 1.7'
17+
s.dependency 'AppSyncRealTimeClient', '~> 3.0.0'
1818

1919
s.source_files = 'AWSAppSyncClient/AWSAppSync.h', 'AWSAppSyncClient/*.swift', 'AWSAppSyncClient/Internal/**/*.{h,m,swift}', 'AWSAppSyncClient/Apollo/Sources/Apollo/*.swift'
2020
s.public_header_files = ['AWSAppSyncClient/AWSAppSync.h', 'AWSAppSyncClient/AWSAppSync-Swift.h', 'AWSAppSyncClient/Internal/AppSyncLogHelper.h']

AWSAppSyncClient/Internal/SubscriptionFactory/APIKeyBasedConnectionPool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class APIKeyBasedConnectionPool: SubscriptionConnectionPool {
2020
func connection(for url: URL, connectionType: SubscriptionConnectionType) -> SubscriptionConnection {
2121

2222
let connectionProvider = endPointToProvider[url.absoluteString] ??
23-
ConnectionProviderFactory.createConnectionProvider(for: url,
23+
ConnectionProviderFactory.createConnectionProvider(for: URLRequest(url: url),
2424
authInterceptor: APIKeyAuthInterceptor(apiKeyProvider.getAPIKey()),
2525
connectionType: connectionType)
2626
endPointToProvider[url.absoluteString] = connectionProvider

AWSAppSyncClient/Internal/SubscriptionFactory/IAMBasedConnectionPool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class IAMBasedConnectionPool: SubscriptionConnectionPool {
2323
func connection(for url: URL, connectionType: SubscriptionConnectionType) -> SubscriptionConnection {
2424

2525
let connectionProvider = endPointToProvider[url.absoluteString] ??
26-
ConnectionProviderFactory.createConnectionProvider(for: url,
26+
ConnectionProviderFactory.createConnectionProvider(for: URLRequest(url: url),
2727
authInterceptor: IAMAuthInterceptor(credentialProvider,
2828
region: regionType),
2929
connectionType: connectionType)

AWSAppSyncClient/Internal/SubscriptionFactory/LambdaBasedConnectionPool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class LambdaBasedConnectionPool: SubscriptionConnectionPool {
2323
}
2424

2525
let authInterceptor = LambdaAuthInterceptor(authTokenProvider: tokenProvider)
26-
let connectionProvider = ConnectionProviderFactory.createConnectionProvider(for: url,
26+
let connectionProvider = ConnectionProviderFactory.createConnectionProvider(for: URLRequest(url: url),
2727
authInterceptor: authInterceptor,
2828
connectionType: connectionType)
2929
endPointToProvider[url.absoluteString] = connectionProvider

AWSAppSyncClient/Internal/SubscriptionFactory/OIDCBasedConnectionPool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class OIDCBasedConnectionPool: SubscriptionConnectionPool {
2424

2525
let authProvider = AppSyncRealTimeClientOIDCAuthProvider(authProvider: tokenProvider)
2626
let authInterceptor = OIDCAuthInterceptor(authProvider)
27-
let connectionProvider = ConnectionProviderFactory.createConnectionProvider(for: url,
27+
let connectionProvider = ConnectionProviderFactory.createConnectionProvider(for: URLRequest(url: url),
2828
authInterceptor: authInterceptor,
2929
connectionType: connectionType)
3030
endPointToProvider[url.absoluteString] = connectionProvider

AWSAppSyncClient/Internal/SubscriptionFactory/UserPoolsBasedConnectionPool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class UserPoolsBasedConnectionPool: SubscriptionConnectionPool {
2424

2525
let authProvider = AppSyncRealTimeClientOIDCAuthProvider(authProvider: tokenProvider)
2626
let authInterceptor = OIDCAuthInterceptor(authProvider)
27-
let connectionProvider = ConnectionProviderFactory.createConnectionProvider(for: url,
27+
let connectionProvider = ConnectionProviderFactory.createConnectionProvider(for: URLRequest(url: url),
2828
authInterceptor: authInterceptor,
2929
connectionType: connectionType)
3030
endPointToProvider[url.absoluteString] = connectionProvider

AWSAppSyncUnitTests/SubscriptionMiscTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class MockDelayedConnection: SubscriptionConnection {
118118
eventHandler: eventHandler)
119119
DispatchQueue.global().asyncAfter(deadline: DispatchTime.now() + .seconds(secondsToWait)) {
120120

121-
self.subscriptionItem.subscriptionEventHandler(.failed(ConnectionProviderError.other),
121+
self.subscriptionItem.subscriptionEventHandler(.failed(ConnectionProviderError.unknown(payload: nil)),
122122
self.subscriptionItem)
123123
}
124124
return subscriptionItem

Cartfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
github "aws/aws-sdk-ios" ~> 2.27.0
1+
github "aws/aws-sdk-ios" ~> 2.30.1
22
github "stephencelis/SQLite.swift" ~> 0.12.2
3-
github "aws-amplify/aws-appsync-realtime-client-ios" ~> 1.8
3+
github "aws-amplify/aws-appsync-realtime-client-ios" ~> 3.0.0

Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ let package = Package(
1414
.package(
1515
name: "AWSiOSSDKV2",
1616
url: "https://github.com/aws-amplify/aws-sdk-ios-spm.git",
17-
.upToNextMinor(from: "2.27.0")
17+
.upToNextMinor(from: "2.30.1")
1818
),
1919
.package(
2020
name: "AppSyncRealTimeClient",
2121
url: "https://github.com/aws-amplify/aws-appsync-realtime-client-ios.git",
22-
from: "1.8.0"
22+
from: "3.0.0"
2323
),
2424
.package(
2525
url: "https://github.com/stephencelis/SQLite.swift.git",

0 commit comments

Comments
 (0)