-
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
Feature/2.3.1 #67
Feature/2.3.1 #67
Conversation
…ontain only 2.3.1 changes
@Mike-FoMoCo What are the changes for 2.3.1? |
(Joel) I moved this comment into the header |
@@ -269,6 +279,12 @@ - (void)dealloc { | |||
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationWillEnterForegroundNotification object:nil]; |
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.
All NSNotificationCenter observations can be removed from an observer by calling [[NSNotificationCenter defaultCenter] removeObserver:self]
, which will clean up a few lines of code and make sure you don't miss removing any observations at dealloc time.
I would like for these to be addressed. In addition to these, the fact that this PR makes api removals means that this is a major version change, so the earliest this could be merged is 4.0. Before it is merged, it would also need to be rebased on develop and squashed. |
@joeljfischer Which APIs changed for this pull request? I am a bit confused; can you get more specific? |
Sure. This is the list I got. SemVer major version changes:
SemVer Minor version changes
|
Thanks. We are reviewing these changes. |
messageType = NAMES_notification; | ||
} | ||
return self; | ||
} |
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.
Some things to note about this fix:
- The incorrectly set
messageType
issue does not just affect Notifications, but Responses as well - Unfortunately, what you currently have will not quite fix the issue. The reason for this is that while the
messageType
variable will be set correctly, this value is used in creating the internal dictionary, and thus the dictionary will be improperly structured.
-(id) initWithName:(NSString*) name {
if (self = [super init]) {
function = [[NSMutableDictionary alloc] initWithCapacity:3];
parameters = [[NSMutableDictionary alloc] init];
messageType = NAMES_request;
[store setObject:function forKey:messageType];
[function setObject:parameters forKey:NAMES_parameters];
[function setObject:name forKey:NAMES_operation_name];
}
return self;
}
As you can see, the messageType
is used as a key in the dictionary, and this key-value pair is set while the messageType
is still "request".
messageType = NAMES_request;
[store setObject:function forKey:messageType];
The simplest way to fix this issue would be to remove these two lines from [SDLRPCMessage initWithDictionary] and add them to the override of initWithDictionary in SDLRPCNotification, SDLRPCResponse, SDLRPCRequest, replacing names_request
with names_notification
, names_response
, and names_request
respectively.
Note that #71 could alleviate the issue of API changes that we are facing. Looking for feedback regarding that proposal. |
Closed in favor of #91 |
I've included the 2.3.1 release notes below:
Updates from AppLink 2.3 to 2.3.1 (iOS)
Changes / Enhancements – iOS
Fixed Issues – iOS
level higher so we re-perform the search to see what external accessories are
connected.
the event that more than 1 message is in the buffer at once.
Note:
Edit (Joel): Changed Ford names to SDL ones