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

Adding AppInfo Struct to RegisterAppInterface #431

Merged
merged 7 commits into from Aug 1, 2016
Merged

Adding AppInfo Struct to RegisterAppInterface #431

merged 7 commits into from Aug 1, 2016

Conversation

asm09fsu
Copy link
Contributor

@asm09fsu asm09fsu commented Jul 30, 2016

Fixes #398

This PR is ready for review.

Risk

This PR makes minor API changes.

Testing Plan

Tests have been added to SDLRegisterAppInterfaceSpec and SDLRPCRequestFactorySpec and newly made SDLAppInfoSpec.

Summary

This PR adds the ability to send an app info struct with a register app interface to assist in remote app launching strategies.

Changelog

Enchancements
  • Added ability to send app info with a register app interface to assist in remote app launching strategies.

…e_398_appinfo

* smartdevicelink/develop: (84 commits)
  Fixed spec issue relating to changed default movementTimeThreshold.
  Fixed spec issues relating to changed protocol property name.
  Added check for singleTapTimer nullability when canceling.
  Removed external displayCapabilities property.
  Removed synthesize of videoEncoderSettings.
  Consolidated inits with a base init that both the deprecated and new init use.
  Updated SDLStreamingMediaManager's init function to include display capabilities.
  Moved the observing of application state changes to Streaming Media Manager.
  Moved Touch Manager to be a property of the Streaming Media Manager instead of the Proxy.
  Updated SDLPinchGesture's touches from having copy to strong.
  Added observation of when an application enters an invalidate state so we can end timers.
  Renamed internal methods to make them more readable.
  Added support for retrieving screen dimensions from a successful register app interface for use in the video encoder.
  Added nullable property to streaming media manager for proper cleanup when destructing the proxy.
  Changed videoEncoderSettings to be null_resettable instead of nullable, because that is essentially what we are doing.
  Removed surrounding parenthesis on NSNumber-wrapped boolean.
  Fixed issue with default movementTimeThreshold being off by a tenth resulting in no panning callbacks.
  add id attribute to section headers for linking
  Renamed touchEventListener to touchEventDelegate.
  Updated variable from "Listener" to "Delegate.
  ...
@codecov-io
Copy link

Current coverage is 29.09% (diff: 0.00%)

Merging #431 into develop will decrease coverage by 0.09%

@@            develop       #431   diff @@
==========================================
  Files           289        290     +1   
  Lines          9637       9669    +32   
  Methods        2643       2652     +9   
  Messages          0          0          
  Branches        632        633     +1   
==========================================
  Hits           2813       2813          
- Misses         6779       6811    +32   
  Partials         45         45          

Powered by Codecov. Last update ca91918...ea5bf7c

@asm09fsu asm09fsu added the proposal Accepted SDL Evolution Proposal label Jul 30, 2016
@asm09fsu asm09fsu added this to the 4.2 milestone Jul 30, 2016
@asm09fsu
Copy link
Contributor Author

@joeljfischer please review

SDLAppInfo* appInfo = [[SDLAppInfo alloc] init];
NSBundle* mainBundle = [NSBundle mainBundle];
NSDictionary* bundleDictionary = mainBundle.infoDictionary;
appInfo.appVersion = [bundleDictionary objectForKey:kBundleShortVersionStringKey];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can use shortened syntax: bundleDictionary[kBundleShortVersionStringKey].

@joeljfischer
Copy link
Contributor

@justinjdickow where is this on implementation into Core?

@joeljfischer
Copy link
Contributor

LGTM

@joeljfischer joeljfischer merged commit 68c2f60 into smartdevicelink:develop Aug 1, 2016
@asm09fsu asm09fsu deleted the ford/issue_398_appinfo branch November 1, 2016 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Accepted SDL Evolution Proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants