You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/01/11 00:46:13 UTC
[jira] [Resolved] (CB-2155) getDeviceInfo never parses
Settings.plist file
[ https://issues.apache.org/jira/browse/CB-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-2155.
----------------------------------
Resolution: Fixed
Indirectly fixed through CB-1946 -- the selector has been changed back to JSONString
> getDeviceInfo never parses Settings.plist file
> ----------------------------------------------
>
> Key: CB-2155
> URL: https://issues.apache.org/jira/browse/CB-2155
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.2.0
> Reporter: Becky Gibson
> Assignee: Shazron Abdullah
> Fix For: 2.4.0
>
>
> The @selector check in CDVDevice.m getDeviceInfo needs to be updated to check for @selector(cdvjk_JSONString) rather than just JSONString. Currently the Settings.plist is never parsed.
> //current code that needs to be fixed:
> NSDictionary* temp = [CDVViewController getBundlePlist:@"Settings"];
> if ([temp respondsToSelector:@selector(JSONString)]) {
> NSString* js = [NSString stringWithFormat:@"window.Settings = %@;", [temp cdvjk_JSONString]];
> [self.commandDelegate evalJs:js];
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira