You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/05/14 23:30:23 UTC
[4/6] ios commit: [CB-3166] Add deprecation notice for use of
in config.xml in iOS
[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/3.0.0
Commit: 4b672e02277f1666c260dbf089fbde1492df31f5
Parents: 236e12e
Author: Shazron Abdullah <sh...@apache.org>
Authored: Mon May 13 15:44:08 2013 -0700
Committer: Shazron Abdullah <sh...@apache.org>
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"]) {