GH-690: Run prepare with the correct ConfigParser

This commit is contained in:
Darryl Pogue 2019-03-14 23:02:53 -07:00
parent 576edb53bb
commit 6533474070
No known key found for this signature in database
GPG Key ID: CB824715C3E6FD41

View File

@ -25,6 +25,7 @@ var PluginManager = require('cordova-common').PluginManager;
var CordovaLogger = require('cordova-common').CordovaLogger;
var selfEvents = require('cordova-common').events;
var ConfigParser = require('cordova-common').ConfigParser;
var PLATFORM = 'android';
@ -174,6 +175,8 @@ Api.prototype.getPlatformInfo = function () {
* CordovaError instance.
*/
Api.prototype.prepare = function (cordovaProject, prepareOptions) {
cordovaProject.projectConfig = new ConfigParser(cordovaProject.locations.rootConfigXml || cordovaProject.projectConfig.path);
return require('./lib/prepare').prepare.call(this, cordovaProject, prepareOptions);
};