Updated Branches: refs/heads/master 236e12e95 -> 4b672e022
[CB-3166] Add deprecation notice for use of <plugin> in config.xml in iOS Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/4b672e02 Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/4b672e02 Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/4b672e02 Branch: refs/heads/master Commit: 4b672e02277f1666c260dbf089fbde1492df31f5 Parents: 236e12e Author: Shazron Abdullah <[email protected]> Authored: Mon May 13 15:44:08 2013 -0700 Committer: Shazron Abdullah <[email protected]> Committed: Mon May 13 15:44:08 2013 -0700 ---------------------------------------------------------------------- CordovaLib/Classes/CDVConfigParser.m | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/4b672e02/CordovaLib/Classes/CDVConfigParser.m ---------------------------------------------------------------------- diff --git a/CordovaLib/Classes/CDVConfigParser.m b/CordovaLib/Classes/CDVConfigParser.m index 2b8722a..23ae401 100644 --- a/CordovaLib/Classes/CDVConfigParser.m +++ b/CordovaLib/Classes/CDVConfigParser.m @@ -56,6 +56,13 @@ if ([@"true" isEqualToString : attributeDict[@"onload"]]) { [self.startupPluginNames addObject:name]; } + NSLog(@"\nUse of the <plugin> tag has been deprecated. Use a <feature> tag instead. Change:\n" + @" <plugin name=\"%@\" value=\"%@\" />\n" + @"To:\n" + @" <feature name=\"%@\">\n" + @" <param name=\"ios-package\" value=\"%@\">\n" + @" </feature>\n" + , attributeDict[@"name"], attributeDict[@"value"], attributeDict[@"name"], attributeDict[@"value"]); } else if ([elementName isEqualToString:@"feature"]) { // store feature name to use with correct parameter set featureName = [attributeDict[@"name"] lowercaseString]; } else if ((featureName != nil) && [elementName isEqualToString:@"param"]) {
