Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(function() {
'use strict';
var cordova_util = require('cordova-lib/src/cordova/util');
var projectRoot = cordova_util.isCordova(process.cwd());
var projectXml = cordova_util.projectConfig(projectRoot);
var projectPlatforms = cordova_util.listPlatforms(projectRoot);
var CordovaConfigParser,
projectConfig;
if ( typeof cordova_util.config_parser === 'undefined' ) {
CordovaConfigParser = require('cordova-lib/src/configparser/ConfigParser.js');
projectConfig = new CordovaConfigParser(projectXml);
} else {
projectConfig = new cordova_util.config_parser(projectXml);
}
var fs = require ('fs');
var path = require('path');
var platformDir = {
(function() {
'use strict';
var cordova_util = require('cordova-lib/src/cordova/util');
var projectRoot = cordova_util.isCordova(process.cwd());
var projectXml = cordova_util.projectConfig(projectRoot + '/www');
var projectPlatforms = cordova_util.listPlatforms(projectRoot);
var CordovaConfigParser,
projectConfig;
if ( typeof cordova_util.config_parser === 'undefined' ) {
CordovaConfigParser = require('cordova-lib').configparser;
projectConfig = new CordovaConfigParser(projectXml);
} else {
projectConfig = new cordova_util.config_parser(projectXml);
}
var fs = require ('fs');
var path = require('path');
var platformDir = {