cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-2155) getDeviceInfo never parses Settings.plist file
Date Wed, 09 Jan 2013 00:48:12 GMT

    [ https://issues.apache.org/jira/browse/CB-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13547483#comment-13547483
] 

Shazron Abdullah commented on CB-2155:
--------------------------------------

With CB-1946 this issue might change.
                
> 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

Mime
View raw message