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

Feature/struct property rewrite #494

Merged
merged 11 commits into from
Jan 19, 2017
Merged

Conversation

asm09fsu
Copy link
Contributor

Fixes #493

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

These changes can be tested using the included Unit Tests

Summary

This PR modifies all the internal code for the setting and getting of properties in Structs and RPCs, allowing us to use a generic line of code instead of rewriting the same implementation for every new property.

Changelog

Enchancements
  • Improved code quality around property getters/setters.

…erty_rewrite

* origin/master:
  Update documentation
  Update to v4.4.0
  Fixed issue relating to uploading files to Core that was out of memory.
  Uncommented SDLOasisAddress.
  Removed unused initializer from DateTime
  Added more informative description for SendLocation's DateTime.
  Updated formatting
  Updated Date/Time documentation.
  Replaced SendLocation's CGFloat with double.
  Fixed issues with tests not compiling and giving warnings of extra imports.
  Added additional initializer for SendLocation
  Made addressLines property more defined on usage.
  Added additional initializers for SDLDateTime.
  Fixed issues with tests not compiling and giving warnings of extra imports.
  Added missing spec tests
  Updated to Podspec 4.4.0
  Merge remote-tracking branch 'origin/master' into sdl_0004_sendlocation_updates
  Added support for generic SDLDisplayType.
  Added support for Waypoint RPCs and notifications.
  Added support for Send Location updates with delivery mode, time stamp, and address updates.

# Conflicts:
#	SmartDeviceLink/SDLDateTime.m
#	SmartDeviceLink/SDLDeliveryMode.h
#	SmartDeviceLink/SDLDeliveryMode.m
#	SmartDeviceLink/SDLDisplayType.h
#	SmartDeviceLink/SDLDisplayType.m
#	SmartDeviceLink/SDLFunctionID.m
#	SmartDeviceLink/SDLGetWaypoints.h
#	SmartDeviceLink/SDLGetWaypoints.m
#	SmartDeviceLink/SDLGetWaypointsResponse.m
#	SmartDeviceLink/SDLLocationCoordinate.m
#	SmartDeviceLink/SDLLocationDetails.m
#	SmartDeviceLink/SDLNames.h
#	SmartDeviceLink/SDLOasisAddress.m
#	SmartDeviceLink/SDLOnWaypointChange.m
#	SmartDeviceLink/SDLSendLocation.h
#	SmartDeviceLink/SDLSendLocation.m
#	SmartDeviceLink/SDLSubscribeWaypoints.m
#	SmartDeviceLink/SDLSubscribeWaypointsResponse.m
#	SmartDeviceLink/SDLUnsubscribeWaypoints.m
#	SmartDeviceLink/SDLUnsubscribeWaypointsResponse.m
#	SmartDeviceLink/SDLUploadFileOperation.m
#	SmartDeviceLink/SDLWaypointType.h
#	SmartDeviceLink/SDLWaypointType.m
#	SmartDeviceLinkTests/ProtocolSpecs/SDLFunctionIDSpec.m
#	SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDeliveryModeSpec.m
#	SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLDisplayTypeSpec.m
#	SmartDeviceLinkTests/RPCSpecs/EnumSpecs/SDLWaypointTypeSpec.m
#	SmartDeviceLinkTests/RPCSpecs/NotificationSpecs/SDLOnWaypointChangeSpec.m
#	SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLGetWaypointsSpec.m
#	SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSendLocationSpec.m
#	SmartDeviceLinkTests/RPCSpecs/ResponseSpecs/SDLGetWaypointsResponseSpec.m
#	SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLDateTimeSpec.m
#	SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLLocationCoordinateSpec.m
#	SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLLocationDetailsSpec.m
#	SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLOasisAddressSpec.m
…perty_rewrite

* origin/develop: (44 commits)
  Removed SDLTTSChunkFactory from project.
  Removed SDLRPCRequestFactory from project.
  Remove a test focus
  Fixed test cases
  Fix podspec not updated with latest version number
  Update for v4.5.0
  Follow style guide for boolean check
  Updated formatting of README.md
  Removed nonexistent implementation file from project.
  Added steps for using the lock screen manager from SDL's bundle to the readme.
  Added check when trying to upload an appIcon for a head unit that does not support graphics.
  Update for v4.5.0
  Fixed issue with trying to upload a file that is nil will cause an infinite loop.
  Fixed an issue with initializer causing infinite loop.
  Improved readability for nil-checks.
  Fixed issue relating to SDLLocationDetails' searchAddress using the wrong key for object store.
  Fixed formatting for some interfaces.
  Fixed issue with LocationDetails' properties not properly becoming initialized.
  Fixed issue with waypoints not being correctly initialized as SDLLocationDetails
  Adding in nil checks for completion handlers of Streaming Media Manager.
  ...

# Conflicts:
#	SmartDeviceLink/SDLDateTime.m
#	SmartDeviceLink/SDLGetWaypoints.m
#	SmartDeviceLink/SDLGetWaypointsResponse.m
#	SmartDeviceLink/SDLLocationCoordinate.m
#	SmartDeviceLink/SDLLocationDetails.m
#	SmartDeviceLink/SDLOasisAddress.m
#	SmartDeviceLink/SDLOnWaypointChange.m
#	SmartDeviceLink/SDLSendLocation.m
#	SmartDeviceLink/SDLUnsubscribeWaypoints.m
#	SmartDeviceLink/SDLUnsubscribeWaypointsResponse.m
#	SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLLocationDetailsSpec.m
@asm09fsu asm09fsu added best practice Not a defect but something that should be improved anyway enhancement labels Jan 18, 2017
@asm09fsu asm09fsu added this to the 5.0.0 milestone Jan 18, 2017
@asm09fsu asm09fsu requested a review from joeljfischer January 18, 2017 19:59
@joeljfischer joeljfischer merged commit 69638e1 into develop Jan 19, 2017
@joeljfischer joeljfischer deleted the feature/struct_property_rewrite branch January 19, 2017 19:49
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.

2 participants