You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by no...@apache.org on 2021/09/15 19:08:03 UTC
[cordova-ios] branch master updated: fix: split xcode project
location by env separator (#1140)
This is an automated email from the ASF dual-hosted git repository.
normanbreau 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 c790953 fix: split xcode project location by env separator (#1140)
c790953 is described below
commit c79095303fc277f8bce7b3776520d55ef60036a6
Author: SvyatoslavPozhydaev <sv...@gmail.com>
AuthorDate: Wed Sep 15 22:07:56 2021 +0300
fix: split xcode project location by env separator (#1140)
---
bin/templates/scripts/cordova/Api.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/templates/scripts/cordova/Api.js b/bin/templates/scripts/cordova/Api.js
index 5532c19..93dcba4 100644
--- a/bin/templates/scripts/cordova/Api.js
+++ b/bin/templates/scripts/cordova/Api.js
@@ -258,7 +258,7 @@ Api.prototype.addPlugin = function (plugin, installOptions) {
const bridgingHeaders = headerTags.filter(obj => obj.type === 'BridgingHeader');
if (bridgingHeaders.length > 0) {
const project_dir = this.locations.root;
- const project_name = this.locations.xcodeCordovaProj.split('/').pop();
+ const project_name = this.locations.xcodeCordovaProj.split(path.sep).pop();
const BridgingHeader = require('./lib/BridgingHeader').BridgingHeader;
const bridgingHeaderFile = new BridgingHeader(path.join(project_dir, project_name, 'Bridging-Header.h'));
events.emit('verbose', 'Adding Bridging-Headers since the plugin contained <header-file> with type="BridgingHeader"');
@@ -306,7 +306,7 @@ Api.prototype.removePlugin = function (plugin, uninstallOptions) {
const bridgingHeaders = headerTags.filter(obj => obj.type === 'BridgingHeader');
if (bridgingHeaders.length > 0) {
const project_dir = this.locations.root;
- const project_name = this.locations.xcodeCordovaProj.split('/').pop();
+ const project_name = this.locations.xcodeCordovaProj.split(path.sep).pop();
const BridgingHeader = require('./lib/BridgingHeader').BridgingHeader;
const bridgingHeaderFile = new BridgingHeader(path.join(project_dir, project_name, 'Bridging-Header.h'));
events.emit('verbose', 'Removing Bridging-Headers since the plugin contained <header-file> with type="BridgingHeader"');
@@ -342,7 +342,7 @@ Api.prototype.removePlugin = function (plugin, uninstallOptions) {
Api.prototype.addPodSpecs = function (plugin, podSpecs, frameworkPods, installOptions) {
const project_dir = this.locations.root;
- const project_name = this.locations.xcodeCordovaProj.split('/').pop();
+ const project_name = this.locations.xcodeCordovaProj.split(path.sep).pop();
const minDeploymentTarget = this.getPlatformInfo().projectConfig.getPreference('deployment-target', 'ios');
const Podfile = require('./lib/Podfile').Podfile;
@@ -469,7 +469,7 @@ Api.prototype.addPodSpecs = function (plugin, podSpecs, frameworkPods, installOp
Api.prototype.removePodSpecs = function (plugin, podSpecs, frameworkPods, uninstallOptions) {
const project_dir = this.locations.root;
- const project_name = this.locations.xcodeCordovaProj.split('/').pop();
+ const project_name = this.locations.xcodeCordovaProj.split(path.sep).pop();
const Podfile = require('./lib/Podfile').Podfile;
const PodsJson = require('./lib/PodsJson').PodsJson;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org