You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2019/01/20 01:29:19 UTC
[cordova-ios] branch master updated: support old cordova-common in
which no getPodSpecs function
This is an automated email from the ASF dual-hosted git repository.
dpogue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push:
new 31ef0cd support old cordova-common in which no getPodSpecs function
31ef0cd is described below
commit 31ef0cdc7f9430d2bf66245baec73f86bd3344a5
Author: knaito <kn...@asial.co.jp>
AuthorDate: Sat Jan 19 17:34:24 2019 +0900
support old cordova-common in which no getPodSpecs function
---
bin/templates/scripts/cordova/Api.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/templates/scripts/cordova/Api.js b/bin/templates/scripts/cordova/Api.js
index c59b573..bffcb7e 100644
--- a/bin/templates/scripts/cordova/Api.js
+++ b/bin/templates/scripts/cordova/Api.js
@@ -267,7 +267,7 @@ Api.prototype.addPlugin = function (plugin, installOptions) {
})
.then(function () {
if (plugin != null) {
- var podSpecs = plugin.getPodSpecs(self.platform);
+ var podSpecs = plugin.getPodSpecs ? plugin.getPodSpecs(self.platform) : [];
var frameworkTags = plugin.getFrameworks(self.platform);
var frameworkPods = frameworkTags.filter(function (obj) {
return (obj.type === 'podspec');
@@ -321,7 +321,7 @@ Api.prototype.removePlugin = function (plugin, uninstallOptions) {
})
.then(function () {
if (plugin != null) {
- var podSpecs = plugin.getPodSpecs(self.platform);
+ var podSpecs = plugin.getPodSpecs ? plugin.getPodSpecs(self.platform) : [];
var frameworkTags = plugin.getFrameworks(self.platform);
var frameworkPods = frameworkTags.filter(function (obj) {
return (obj.type === 'podspec');
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org