awslabs / aws-mobile-appsync-sdk-ios

iOS SDK for AWS AppSync.
https://awslabs.github.io/aws-mobile-appsync-sdk-ios/
Other
262 stars 128 forks source link

feat: Upgrade AppSyncRealTimeClient 1.7.0 for Starscream 4 #518

Closed lawmicha closed 2 years ago

lawmicha commented 2 years ago

Issue #, if available:

Description of changes: Setting the lowest version of AppSyncRealTimeClient to 1.7. When AppSync SDK is released and installed, it will pick up the starscream 4.0.4. Developers could explicitly upgrade AppSyncRT as well using older versions of AppSync SDK, however this way, developers only need to manage the AppSync SDK dependency if they do need to downgrade from starscream 4.0.4.

This PR sets it to 1.7 as the minimum, then will be released without any other changes. Although it is picking up AppSyncRT 1.8, the additive API in 1.8 is not used and can be pulled in as a non-breaking change to this SDK. There is a behavior change in the logging output, such that the default is .error so if pulling in 1.8 from AppSync SDK and need more verbose logs from AppSyncRTClient, the following can be used:

AppSyncRealTimeClient.logLevel = .verbose

Integration tests are passing.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.