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

AppSyncRealTimeClient ~> 1.1 + Cartfile fix #367

Merged
merged 4 commits into from
Mar 16, 2020
Merged

Conversation

lawmicha
Copy link
Contributor

@lawmicha lawmicha commented Mar 16, 2020

Update AppSyncRealTimeClient Dependency to ~> 1.1
This is updated in both the cartfile and the podspec/podfile to take all minor versions from 1.1 up to and not including 2.0 of AppSyncRealTimeClient

cartfile fix
The Cartfile located at the root of the AppSyncClient repository is used when users run carthage update to determine which additional dependencies are needed. The reason for this is because AppSyncClient is managed by Cocoapods via Podfile. If AppSyncClient doesn't have a Cartfile, then the Carthage users in their projects containing a cartfile with github "awslabs/aws-mobile-appsync-sdk-ios" will just pull in AppSync source and build the AppSyncClient.framework and nothing else.

Remove daltoniam/starscream for aws-amplify/aws-appsync-realtime-client-ios
Since aws-amplify/aws-appsync-realtime-client-ios itself is a repository that is managed by Pods, it also has a Cartfile indicating that it will need to pull in Starscream. So users pulling in aws-appsync-realtime-client-ios via cartfile will also pull in starscream.

Testing done
A new project with cartfile
github "awslabs/aws-mobile-appsync-sdk-ios" "feature/carthage"

then carthage update --platform iOS pulls in the required dependencies.

Cartfile.resolved contains:

github "ashleymills/Reachability.swift" "v5.0.0"
github "aws-amplify/aws-appsync-realtime-client-ios" "1.1.5"
github "aws/aws-sdk-ios" "2.13.0"
github "awslabs/aws-mobile-appsync-sdk-ios" "b8aa2dde370168da1cf26fcf852d2360531f5267"
github "daltoniam/starscream" "3.0.6"
github "stephencelis/SQLite.swift" "0.12.2"

So this means carthage users installing awslabs/aws-mobile-appsync-sdk-ios get all the frameworks required, ie. taking a dependency on aws-amplify/aws-appsync-realtime-client-ios will pull in daltoniam/starscream

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

@lawmicha lawmicha changed the title Update Cartfile to pick up AppSyncRealTimeClient AppSyncRealTimeClient ~> 1.1 + Cartfile fix Mar 16, 2020
@lawmicha lawmicha requested review from palpatim and royjit March 16, 2020 20:02
@lawmicha lawmicha merged commit 95efd60 into master Mar 16, 2020
@@ -63,6 +63,8 @@ The AWS AppSync SDK for iOS enables you to access your AWS AppSync backend and p
* AWSCore.framework
* Reachability.framework
* SQLite.framework
* AppSyncRealTimeClient.framework
* Starscream.framework
Copy link
Contributor

Choose a reason for hiding this comment

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

Below, at https://github.com/awslabs/aws-mobile-appsync-sdk-ios/pull/367/files#diff-04c6e90faac2675aa89e2176d2eec7d8R86

Change "using Xcode 10.1" to "using Xcode 11". We should also add a new item to update the image to osx_image: xcode11.3 in .travis.yml, and then update README.md as appropriate.

Copy link
Contributor Author

@lawmicha lawmicha Mar 16, 2020

Choose a reason for hiding this comment

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

thanks! updating README for now: #369
and travis image to 11.3 #370

@jodafm
Copy link

jodafm commented Apr 1, 2020

Hi @lawmicha
I recently created the issue #374 because the Carthage build is failing after update XCODE to 11.4.
Maybe it is related to this merge.

@lawmicha lawmicha deleted the feature/carthage branch April 6, 2020 18:09
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.

4 participants