-
Notifications
You must be signed in to change notification settings - Fork 26
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
General adjustment to API spec. #204
Conversation
a0e3f92
to
29b80f6
Compare
|
||
## Manual Installation | ||
You can install Ably for iOS either thorugh CocoaPods or manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: thorugh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed at 493e0bf.
@tcard wow, this is a MEGA PR :) |
**Objective-C** | ||
|
||
```objective-c | ||
[ARTTestUtil testRealtime:options callback:^(ARTRealtime *client) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this example use ARTTestUtil
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, no. I copypasted more than appropriate from the test. Fixed at 493e0bf.
29b80f6
to
493e0bf
Compare
@@ -424,23 +404,22 @@ - (ARTErrorInfo *)attach { | |||
[self.realtime send:attachMessage cb:nil]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to pass the cb
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, good catch. Fixed at 0e36e0b.
👏🏻👏🏻👏🏻 Great work. |
fb040ca
to
0e36e0b
Compare
OK, I finally got all tests passing in my machine. Let's see what the CI says, but it should be mergeable now after your LGTM. @ricardopereira @mattheworiordan |
There are some tests that pass when ran individually but fail when ran in bulk. Although this is introducing this bug, I think we can merge this since it is blocking all other work and we can deal with that afterwards. |
Agreed, failures like this are test suite issues, not necessarily issues with the library. Perhaps merge and add an issue |
@tcard I removed this block of code: https://github.com/ably/ably-ios/blob/5d85a840cd31d1c4d687b7bd848a86628695d18b/ablySpec/RealtimeClientConnection.swift#L469-L473. Tests are passing now https://travis-ci.org/ably/ably-ios/builds/109306828. Maybe it is something wrong with Why didn't you use Quick? https://github.com/ably/ably-ios/blob/5d85a840cd31d1c4d687b7bd848a86628695d18b/ablySpec/ReadmeExamples.swift#L15 This is not good for debugging: https://github.com/ably/ably-ios/blob/5d85a840cd31d1c4d687b7bd848a86628695d18b/ably-ios/ARTConnection.m#L79 |
faa4385
to
25a95de
Compare
Rebased without changes. |
Sorry, scratch that, there were some tests added to master that now don't compile. Fixing. |
@tcard You right. Quick generates each test dynamically. That's why it sucks when you try to execute one test with the Xcode shortcut.
Ok, if you say so. I didn't pay to much attention to it but it felt like it wasn't stepping into the ARTEventEmitter.
Can you try clean all the warnings too? |
Done that as well. PTAL |
Great, thank you. |
General adjustment to API spec.
This pull request is a rather big chain of fixes to adjust to the API spec.
Because most commits rely on some changes from previous commits in the chain, it's not possible to separate them in independent pull requests, so rather than have a series of pull requests each waiting on the previous one to be merged I'm just pushing them all together. It's probably easier to review each commit than the whole thing at once.
Sorry I didn't do this more gradually, but I often edited old commits as I discovered things to fix in an old commit's concern.