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

Updated Protocol Enums to Match Spec #502

Merged
merged 7 commits into from
Jan 27, 2017

Conversation

asm09fsu
Copy link
Contributor

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
  • Changed names of SDLProtocolHeader enums to match the spec and make them easier to use in swift.
Enchancements
  • Changed names of SDLProtocolHeader enums to match the spec and make them easier to use in swift.

@asm09fsu asm09fsu added best practice Not a defect but something that should be improved anyway enhancement labels Jan 19, 2017
@asm09fsu asm09fsu added this to the 5.0.0 milestone Jan 19, 2017
@asm09fsu asm09fsu requested a review from joeljfischer January 19, 2017 05:28
@joeljfischer
Copy link
Contributor

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.
@codecov-io
Copy link

codecov-io commented Jan 20, 2017

Current coverage is 9.92% (diff: 4.08%)

No coverage report found for develop at 36dc4c2.

Powered by Codecov. Last update 36dc4c2...82be2e8

typedef NS_ENUM(UInt8, SDLFrameInfo) {
SDLFrameInfoHeartbeat = 0x00,
SDLFrameInfoStartService = 0x01,
SDLFrameInfoStartServiceAck = 0x02,
Copy link
Contributor

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
  ...
@joeljfischer joeljfischer merged commit 45632d0 into develop Jan 27, 2017
@joeljfischer joeljfischer deleted the feature/issue_275_protocol_spec_enums branch January 27, 2017 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
best practice Not a defect but something that should be improved anyway
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants