Skip to content
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

feat: Upgrade Starscream to 4.0.4 #62

Merged
merged 1 commit into from
Feb 9, 2022
Merged

feat: Upgrade Starscream to 4.0.4 #62

merged 1 commit into from
Feb 9, 2022

Conversation

lawmicha
Copy link
Contributor

@lawmicha lawmicha commented Feb 2, 2022

Issue #, if available:

Description of changes:
At this time, we'll take the latest version at 4.0.4 https://github.com/daltoniam/Starscream/blob/master/CHANGELOG.md

This is slightly different from #51 in

  • Cartfile maintains up to next minor (not including) 4.0.4 instead of 4.0
  • Podfile also ~> 4.0.4 instead of ~> 4.0
  • Package.swift .upToNextMinor(from: "4.0.4") instead of .upToNextMajor(from: "4.0.0")

If we set it to ~> 4.0, this will pick up all minor versions. Although it may not a breaking change to pick up minor versions, mistakes can happen, which will directly impact customer's updating their dependencies. Setting it to up to next minor (not including) will allow us to perform the upgrade before the customers do, validate/test, and release it explicitly as a new patch update from this library.

SPM's .upToNextMinor is a little confusing in the Apple docs. When I use .upToNextMinor(from: "3.0.0"), it is showing the desired behavior in Package.resolved as "version": "3.0.6". 3.0.6 is the last version of 3.0.0 before 3.1.0/3.1.1. (https://github.com/daltoniam/Starscream/releases) This is what we want, to include all patches, up to and not including the next minor, but apple docs says "going up to the next minor version" which is not what we want.

Testing done:

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

let serialQueue = DispatchQueue(label: "com.amazonaws.StarscreamAdapter.serialQueue")
let callbackQueue = DispatchQueue(
label: "com.amazonaws.StarscreamAdapter.callBack",
target: serialQueue
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lawmicha lawmicha marked this pull request as ready for review February 8, 2022 17:55
@lawmicha lawmicha requested a review from a team February 8, 2022 17:55
"revision": "37760e9a52030bb9011972c5213c3350fa9d41fd",
"version": "1.0.0"
"revision": "df8d82047f6654d8e4b655d1b1525c64e1059d21",
"version": "4.0.4"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏 This change will remove the "ignoring declared target(s)" warning, correct?

Copy link
Contributor Author

@lawmicha lawmicha Feb 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't reproduce the warning (I may have missed it), but looks like according to this issue https://github.com/aws-amplify/aws-appsync-realtime-client-ios/issues/54, it was due to swift-nio-zlib-support. going up to starscream 4.x.x removes it so i believe the warning will be gone as well.

Copy link
Contributor

@brennanMKE brennanMKE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lawmicha lawmicha merged commit 800548f into main Feb 9, 2022
@lawmicha lawmicha deleted the feat/starscream-4 branch February 9, 2022 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants