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/03/07 06:03:32 UTC

[cordova-ios] branch master updated: Override id with ios-CFBundleIdentifier

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 1d59304  Override id with ios-CFBundleIdentifier
1d59304 is described below

commit 1d593049ca1e9fdeea3d6fe1e02450936a57bb53
Author: malwatte <ni...@gmail.com>
AuthorDate: Thu Mar 7 10:14:08 2019 +0530

    Override id with ios-CFBundleIdentifier
    
    Override id with  ios-CFBundleIdentifier  when both id and ios-CFBundleIdentifier is set in config.xml
---
 bin/templates/scripts/cordova/Api.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/templates/scripts/cordova/Api.js b/bin/templates/scripts/cordova/Api.js
index 7059c18..20e8ef54 100644
--- a/bin/templates/scripts/cordova/Api.js
+++ b/bin/templates/scripts/cordova/Api.js
@@ -131,7 +131,7 @@ Api.createPlatform = function (destination, config, options, events) {
     var result;
     try {
         result = require('../../../lib/create')
-            .createProject(destination, config.packageName(), name, options)
+            .createProject(destination, config.getAttribute('ios-CFBundleIdentifier') || config.packageName(), name, options)
             .then(function () {
                 // after platform is created we return Api instance based on new Api.js location
                 // This is required to correctly resolve paths in the future api calls


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org