-
Notifications
You must be signed in to change notification settings - Fork 103
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
Updated Protocol Enums to Match Spec #502
Conversation
Note: Although these are technically major changes, all files involved will be removed from public view before v5.0 launches. |
…protocol_spec_enums * origin/develop: Update for v4.5.1 Added a ParameterAssert instead of throwing an exception, along with returning a handler with an error. Updated to throw an exception instead of returning an error for nil requests being sent. Adding a spec to test sending nil request. Added check for nil request in sending. Fixed issue around not calculating an SDLPutFile's currentOffset correctly. Updated unit tests to cover all SDLPutFiles, not just the first. Added in missing implementations of dictionary categories. Moved the import from SDLRPCStruct to implementation of all classes to remove build warning of redefinition Removed nonexistent files from project Added nullability annotations. Fixed issue using incorrect name for search address. Migrated to using a category instead of adding the classes to the subclass of SDLRPCStruct. Updated missing parameters. Updated setter/getter for all rpcs and structs to use convenience methods.
…protocol_spec_enums * origin/develop: Fixed renamed variable in unit tests.
…protocol_spec_enums * origin/develop: Removed unused property in unit test.
…protocol_spec_enums * origin/develop: Fixed issue with incorrectly parsing SDLRPCResponses.
Current coverage is 9.92% (diff: 4.08%)
|
typedef NS_ENUM(UInt8, SDLFrameInfo) { | ||
SDLFrameInfoHeartbeat = 0x00, | ||
SDLFrameInfoStartService = 0x01, | ||
SDLFrameInfoStartServiceAck = 0x02, |
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.
ACK and NACK should still be uppercase. They are based on the TCP ACK and NACK, which are uppercased.
…protocol_spec_enums * origin/develop: (28 commits) Fixed issue with tests not compiling after merging master into develop. Fixed issue with retain cycle within the dispatch_after block. Fix double semi-colon Re-add reconnecting state Don’t auto-reconnect in example project Cleaned up ProxyManager startWithReadyHandler: In order to restart properly, we need to start only after managerDidDisconnect (per new documentation). Adding a fix to restarting the proxy around an Apple Bug. Adding a note about stopping SDLManager. Removing Reconnecting state and instead using started. Updated lifecycle manager states to handle stopping the manager correctly. Remove NSMutableDictionary+Store.h from podspec Revert "Updated SDLManagerError enum to include a warning case." Updated SDLManagerError enum to include a warning case. Fixed issue with test case not passing. Update with changes to make registration handling testable Actual failure in registration now calls the readyHandler Make `NSMutableDictionary+Store.h` private Fixed issue with stopping the proxy didn't actually stop it. Don’t loop over enums when we don’t have to ...
Fixes #275
This PR is ready for review.
Risk
This PR makes major API changes.
Testing Plan
This will use the existing unit tests, as we just renamed enum values.
Summary
Changed names of
SDLProtocolHeader
enums to match the spec and make them easier to use in swift.Changelog
Breaking Changes
SDLProtocolHeader
enums to match the spec and make them easier to use in swift.Enchancements
SDLProtocolHeader
enums to match the spec and make them easier to use in swift.