Repository: cordova-ios Updated Branches: refs/heads/master 826db773d -> 865f4107d
CB-9825 - Cocoapod integration of plugins - fix for node-windows 0.10 and 0.12 unit-test failures Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/865f4107 Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/865f4107 Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/865f4107 Branch: refs/heads/master Commit: 865f4107d8d3aa917c8a62b32fb774a0da3f4f66 Parents: 826db77 Author: Shazron Abdullah <shaz...@apache.org> Authored: Mon Aug 15 16:35:09 2016 -0700 Committer: Shazron Abdullah <shaz...@apache.org> Committed: Mon Aug 15 16:35:09 2016 -0700 ---------------------------------------------------------------------- bin/templates/scripts/cordova/lib/plugman/pluginHandlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/865f4107/bin/templates/scripts/cordova/lib/plugman/pluginHandlers.js ---------------------------------------------------------------------- diff --git a/bin/templates/scripts/cordova/lib/plugman/pluginHandlers.js b/bin/templates/scripts/cordova/lib/plugman/pluginHandlers.js index 40da442..e0eafdc 100644 --- a/bin/templates/scripts/cordova/lib/plugman/pluginHandlers.js +++ b/bin/templates/scripts/cordova/lib/plugman/pluginHandlers.js @@ -94,13 +94,13 @@ var handlers = { } }, uninstall:function(obj, plugin, project, options) { - var podsJSON = require(path.join(project.projectDir, 'pods.json')); var src = obj.src; if (!obj.custom) { //CB-9825 cocoapod integration for plugins var keepFrameworks = keep_these_frameworks; if (keepFrameworks.indexOf(src) < 0) { if (obj.type === 'podspec') { + var podsJSON = require(path.join(project.projectDir, 'pods.json')); if(podsJSON[src]) { if(podsJSON[src].count > 1) { podsJSON[src].count = podsJSON[src].count - 1; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org