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

[SDL 0018] Adding of Nullability Annotations & Removing Dispose Methods #490

Merged
merged 28 commits into from
Jan 18, 2017

Conversation

asm09fsu
Copy link
Contributor

Fixes #484

This PR is ready for review.

Risk

This PR makes major API changes.

Testing Plan

Testing is done by viewing the properties of all RPCs as described in the RPC Spec, and making sure they conform to the mandatory value of those items (if missing, mandatory is true).

Summary

Added in nullability checks for all properties and classes in the project. These will give warnings in Objective-C if use improperly, and issues if used incorrectly in Swift. We also removed all dispose methods from the project, as the nullability should handle most of this. Any additional cleanup was moved over to dealloc.

Changelog

Breaking Changes
  • Added nullability to all classes in the project and their respective properties.
Enchancements
  • Added nullability to all classes in the project and their respective properties.

asm09fsu and others added 28 commits December 22, 2016 12:19
…e to fix issue with not being usable in swift.
…ullability_annotations

* origin/develop: (30 commits)
  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
  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.
  Updated description to return correct control data name.
  Update changelog for v4.5.0-beta.1
  Update for v4.5.0-beta.1 release
  ...

# Conflicts:
#	SmartDeviceLink/SDLGetWaypoints.h
#	SmartDeviceLink/SDLGetWaypoints.m
#	SmartDeviceLink/SDLGetWaypointsResponse.h
#	SmartDeviceLink/SDLGetWaypointsResponse.m
#	SmartDeviceLink/SDLLocationDetails.m
#	SmartDeviceLink/SDLOnWaypointChange.h
#	SmartDeviceLink/SDLOnWaypointChange.m
#	SmartDeviceLink/SDLPerformInteraction.h
#	SmartDeviceLink/SDLPerformInteraction.m
#	SmartDeviceLink/SDLShowConstantTBT.h
#	SmartDeviceLink/SDLShowConstantTBT.m
#	SmartDeviceLink/SDLSoftButton.h
#	SmartDeviceLink/SDLSubscribeWaypoints.h
#	SmartDeviceLink/SDLSubscribeWaypoints.m
#	SmartDeviceLink/SDLSubscribeWaypointsResponse.h
#	SmartDeviceLink/SDLUnsubscribeWaypoints.h
#	SmartDeviceLink/SDLUnsubscribeWaypoints.m
#	SmartDeviceLink/SDLUnsubscribeWaypointsResponse.h
#	SmartDeviceLink/SDLUnsubscribeWaypointsResponse.m
…ullability_annotations

* origin/develop:
  Removed SDLTTSChunkFactory from project.
  Removed SDLRPCRequestFactory from project.

# Conflicts:
#	SmartDeviceLink/SDLRPCRequestFactory.h
#	SmartDeviceLink/SDLRPCRequestFactory.m
#	SmartDeviceLink/SDLTTSChunkFactory.h
#	SmartDeviceLink/SDLTTSChunkFactory.m
@asm09fsu asm09fsu added best practice Not a defect but something that should be improved anyway enhancement labels Jan 17, 2017
@asm09fsu asm09fsu added the proposal Accepted SDL Evolution Proposal label Jan 17, 2017
@asm09fsu asm09fsu added this to the 5.0.0 milestone Jan 17, 2017
@asm09fsu asm09fsu requested a review from joeljfischer January 17, 2017 20:37
@joeljfischer joeljfischer merged commit 894c34a into develop Jan 18, 2017
@joeljfischer joeljfischer deleted the feature/sdl_0018_nullability_annotations branch January 18, 2017 14:12
@joeljfischer joeljfischer changed the title Adding of Nullability Annotations & Removing Dispose Methods [SDL 0018] Adding of Nullability Annotations & Removing Dispose Methods Jan 18, 2017
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 proposal Accepted SDL Evolution Proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants