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

Update to Swift 4.2 #45

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

flipacholas
Copy link

This includes changes and optimisations that bring the project up to date with the new Swift syntax.

Rodrigo Copetti added 4 commits November 19, 2018 15:20
- AFNetworking was updated from 3.1.0 -> 3.2.1
- Alamofire was updated from 4.4.0 -> 4.7.3

Using Cocoapods 1.6.0.beta.2
Copy link
Author

@flipacholas flipacholas left a comment

Choose a reason for hiding this comment

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

Some of your tests using AFNetworking crash after calling manager.get() due to an unrecognised selector sent to MockSessionDataTask.countOfBytesReceived. Maybe this is not how AFNetworking is used anymore?

@@ -36,4 +36,4 @@ enum SessionMockError: Error {
/**
A default delay to use when mocking requests
*/
var DefaultDelay: Double = 0.25
public var DefaultDelay: Double = 0.25
Copy link
Author

Choose a reason for hiding this comment

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

I'm not sure if you intended to have this global variable as public, but it seems that Swift doesn't allow to use private vars on public functions as default values on parameters anymore.

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.

None yet

1 participant