var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"logError",{enumerable:true,get:function get(){return _logger.logError;}});Object.defineProperty(exports,"logTask",{enumerable:true,get:function get(){return _logger.logTask;}});Object.defineProperty(exports,"logWarning",{enumerable:true,get:function get(){return _logger.logWarning;}});Object.defineProperty(exports,"logDebug",{enumerable:true,get:function get(){return _logger.logDebug;}});Object.defineProperty(exports,"logInfo",{enumerable:true,get:function get(){return _logger.logInfo;}});Object.defineProperty(exports,"logSuccess",{enumerable:true,get:function get(){return _logger.logSuccess;}});Object.defineProperty(exports,"logEnd",{enumerable:true,get:function get(){return _logger.logEnd;}});exports.default=exports.parseErrorMessage=exports.waitForWebpack=exports.waitForEmulator=exports.getBuildFilePath=exports.resolveNodeModulePath=exports.checkPortInUse=exports.cleanPlatformIfRequired=exports.getIP=exports.getBuildsFolder=exports.writeCleanFile=exports.configureIfRequired=exports.PLATFORM_RUNS=exports.isPlatformActive=exports.logErrorPlatform=exports.getAppVersionCode=exports.getAppDescription=exports.getGetJsBundleFile=exports.getEntryFile=exports.getAppLicense=exports.getAppAuthor=exports.getAppVersion=exports.getAppTitle=exports.getAppId=exports.getJsBundleFileDefaults=exports.getConfigProp=exports.CLI_PROPS=exports.getAppConfigId=exports.getAppTemplateFolder=exports.getAppSubFolder=exports.getAppFolder=exports.checkSdk=exports.isSdkInstalled=exports.spawnCommand=exports.isBuildSchemeSupported=exports.isPlatformSupported=exports.isPlatformSupportedSync=exports.startBuilder=exports.initializeBuilder=exports.PARSE_RENATIVE_CONFIG=exports.NO_OP_COMMANDS=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _chalk=_interopRequireDefault(require("chalk"));
var _fs=_interopRequireDefault(require("fs"));
var _path=_interopRequireDefault(require("path"));
var _detectPort=_interopRequireDefault(require("detect-port"));
var _ora=_interopRequireDefault(require("ora"));
var _ip=_interopRequireDefault(require("ip"));
var _axios=_interopRequireDefault(require("axios"));

var _fileutils=require("./systemTools/fileutils");





var _platform=require("./cli/platform");
var _app=_interopRequireDefault(require("./cli/app"));
var _tizen=require("./platformTools/tizen");
var _templateTools=require("./templateTools");
var _pluginTools=require("./pluginTools");
var _logger=require("./systemTools/logger");




var _constants=require("./constants");










var _exec=require("./systemTools/exec");
var _configParser=require("./configTools/configParser");



var _projectParser=require("./projectTools/projectParser");
var _prompt=require("./systemTools/prompt");
var _migrator=require("./projectTools/migrator");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys(source,true).forEach(function(key){(0,_defineProperty2.default)(target,key,source[key]);});}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));}else{ownKeys(source).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}}return target;}

var NO_OP_COMMANDS=['fix','clean','tool','status','log','new','target','platform','crypto'];exports.NO_OP_COMMANDS=NO_OP_COMMANDS;
var PARSE_RENATIVE_CONFIG=['crypto'];exports.PARSE_RENATIVE_CONFIG=PARSE_RENATIVE_CONFIG;

var initializeBuilder=function initializeBuilder(cmd,subCmd,process,program){return new Promise(function(resolve,reject){
var c=(0,_configParser.createRnvConfig)(program,process,cmd,subCmd);

(0,_logger.configureLogger)(c,c.process,c.command,c.subCommand,program.info===true);
(0,_logger.logInitialize)();

resolve(c);
});};exports.initializeBuilder=initializeBuilder;

var startBuilder=function startBuilder(c){return new Promise(function(resolve,reject){
(0,_logger.logTask)('initializeBuilder');

if(NO_OP_COMMANDS.includes(c.command)){
(0,_migrator.checkAndMigrateProject)(c).
then(function(){return(0,_configParser.parseRenativeConfigs)(c);}).
then(function(){return(0,_configParser.configureRnvGlobal)(c);}).
then(function(){return resolve(c);}).
catch(function(e){return reject(c);});
return;
}

(0,_migrator.checkAndMigrateProject)(c).
then(function(){return(0,_configParser.parseRenativeConfigs)(c);}).
then(function(){return(0,_configParser.checkIsRenativeProject)(c);}).
then(function(){return(0,_projectParser.checkAndCreateProjectPackage)(c);}).
then(function(){return(0,_configParser.configureRnvGlobal)(c);}).
then(function(){return(0,_templateTools.checkIfTemplateInstalled)(c);}).
then(function(){return(0,_configParser.fixRenativeConfigsSync)(c);}).
then(function(){return(0,_projectParser.configureNodeModules)(c);}).
then(function(){return(0,_templateTools.applyTemplate)(c);}).
then(function(){return(0,_pluginTools.configurePlugins)(c);}).
then(function(){return(0,_projectParser.configureNodeModules)(c);}).
then(function(){return(0,_configParser.updateConfig)(c,c.runtime.appId);}).
then(function(){return(0,_logger.logAppInfo)(c);}).
then(function(){return resolve(c);}).
catch(function(e){return reject(e);});
});};exports.startBuilder=startBuilder;

var isPlatformSupportedSync=function isPlatformSupportedSync(platform,resolve,reject){
if(!platform){
if(reject){
reject(
_chalk.default.red("You didn't specify platform. make sure you add \""+
_chalk.default.white.bold(
'-p <PLATFORM>')+"\" option to your command!"));



}
return false;
}
if(!_constants.SUPPORTED_PLATFORMS.includes(platform)){
if(reject)reject(_chalk.default.red("Platform "+platform+" is not supported. Use one of the following: "+_chalk.default.white(_constants.SUPPORTED_PLATFORMS.join(', '))+" ."));
return false;
}
if(resolve)resolve();
return true;
};exports.isPlatformSupportedSync=isPlatformSupportedSync;

var isPlatformSupported=function isPlatformSupported(c){return new Promise(function(resolve,reject){
(0,_logger.logTask)("isPlatformSupported:"+c.platform);
if(!c.platform||c.platform==='?'){
var platformsAsObj=c.buildConfig?c.buildConfig.platforms:c.supportedPlatforms;
if(!platformsAsObj)platformsAsObj=_constants.SUPPORTED_PLATFORMS;
var opts=(0,_prompt.generateOptions)(platformsAsObj);

(0,_prompt.askQuestion)("Pick one of available platforms (number or text):\n"+opts.asString).then(function(v){
(0,_prompt.finishQuestion)();

opts.pick(v).
then(function(selectedPlatform){
c.platform=selectedPlatform;
c.program.platform=selectedPlatform;
resolve(selectedPlatform);
}).
catch(function(e){return reject(e);});
});
}else if(!_constants.SUPPORTED_PLATFORMS.includes(c.platform)){
reject(_chalk.default.red("Platform "+c.platform+" is not supported. Use one of the following: "+_chalk.default.white(_constants.SUPPORTED_PLATFORMS.join(', '))));
}else{
resolve();
}
});};exports.isPlatformSupported=isPlatformSupported;

var isBuildSchemeSupported=function isBuildSchemeSupported(c){return new Promise(function(resolve,reject){
(0,_logger.logTask)("isBuildSchemeSupported:"+c.platform);var

scheme=c.program.scheme;

if(!c.buildConfig.platforms[c.platform]){
c.buildConfig.platforms[c.platform]={};
}var

buildSchemes=c.buildConfig.platforms[c.platform].buildSchemes;


if(!buildSchemes){
(0,_logger.logWarning)("Your appConfig for platform "+c.platform+" has no buildSchemes. Will continue with defaults");
resolve();
return;
}

var schemeDoesNotExist=scheme&&!buildSchemes[scheme];
if(scheme==='?'||schemeDoesNotExist){
if(schemeDoesNotExist&&scheme&&scheme!=='?'){
(0,_logger.logError)('Build scheme you picked does not exists.');
}
var opts=(0,_prompt.generateOptions)(buildSchemes);

(0,_prompt.askQuestion)("Pick one of available buildSchemes (number or text):\n"+opts.asString).then(function(v){
(0,_prompt.finishQuestion)();
opts.pick(v).
then(function(selectedScheme){
c.program.scheme=selectedScheme;
resolve(selectedScheme);
}).catch(function(e){return reject(e);});
});
}else{
resolve(scheme);
}
});};exports.isBuildSchemeSupported=isBuildSchemeSupported;

var spawnCommand=function spawnCommand(c,overrideParams){
var newCommand={};

Object.keys(c).forEach(function(k){
if(typeof newCommand[k]==='object'&&!(newCommand[k]instanceof'String')){
newCommand[k]=_objectSpread({},c[k]);
}else{
newCommand[k]=c[k];
}
});

var merge=require('deepmerge');

Object.keys(overrideParams).forEach(function(k){
if(newCommand[k]&&typeof overrideParams[k]==='object'){
newCommand[k]=merge(newCommand[k],overrideParams[k],{arrayMerge:_arrayMergeOverride});
}else{
newCommand[k]=overrideParams[k];
}
});




return newCommand;
};exports.spawnCommand=spawnCommand;

var isSdkInstalled=function isSdkInstalled(c,platform){
(0,_logger.logTask)("isSdkInstalled: "+platform);

if(c.files.private.config){
var sdkPlatform=_constants.SDK_PLATFORMS[platform];
if(sdkPlatform)return _fs.default.existsSync(c.files.private.config.sdks[sdkPlatform]);
}

return false;
};exports.isSdkInstalled=isSdkInstalled;

var checkSdk=function checkSdk(c,platform,reject){
if(!isSdkInstalled(c,platform)){var _c$files$private$conf,_c$files$private$conf2;
reject&&reject(platform+" requires SDK to be installed. check your "+_chalk.default.white(c.paths.private.config)+" file if you SDK path is correct. current value is "+_chalk.default.white((_c$files$private$conf=c.files.private.config)==null?void 0:(_c$files$private$conf2=_c$files$private$conf.sdks)==null?void 0:_c$files$private$conf2.ANDROID_SDK));
return false;
}
return true;
};exports.checkSdk=checkSdk;

var _arrayMergeOverride=function _arrayMergeOverride(destinationArray,sourceArray,mergeOptions){return sourceArray;};

var getAppFolder=function getAppFolder(c,platform){return _path.default.join(c.paths.project.builds.dir,c.runtime.appId+"_"+platform);};exports.getAppFolder=getAppFolder;

var getAppSubFolder=function getAppSubFolder(c,platform){
var subFolder='';
if(platform===_constants.IOS)subFolder='RNVApp';else
if(platform===_constants.TVOS)subFolder='RNVAppTVOS';
return _path.default.join(getAppFolder(c,platform),subFolder);
};exports.getAppSubFolder=getAppSubFolder;

var getAppTemplateFolder=function getAppTemplateFolder(c,platform){return _path.default.join(c.paths.project.platformTemplatesDirs[platform],""+platform);};exports.getAppTemplateFolder=getAppTemplateFolder;

var getAppConfigId=function getAppConfigId(c,platform){return c.buildConfig.id;};exports.getAppConfigId=getAppConfigId;

var _getValueOrMergedObject=function _getValueOrMergedObject(resultCli,o1,o2,o3){
if(resultCli){
return resultCli;
}
if(o1){
if(Array.isArray(o1)||typeof o1!=='object')return o1;
var val=(0,_extends2.default)(o3||{},o2||{},o1);
return val;
}
if(o1===null)return null;
if(o2){
if(Array.isArray(o2)||typeof o2!=='object')return o2;
return(0,_extends2.default)(o3||{},o2);
}
if(o2===null)return null;
return o3;
};

var CLI_PROPS=[
'provisioningStyle',
'codeSignIdentity',
'provisionProfileSpecifier'];exports.CLI_PROPS=CLI_PROPS;


var getConfigProp=function getConfigProp(c,platform,key,defaultVal){
if(!c.buildConfig){
(0,_logger.logError)('getConfigProp: c.buildConfig is undefined!');
return null;
}
var p=c.buildConfig.platforms[platform];
var ps=_getScheme(c);
var resultPlatforms;
var scheme;
if(p){
scheme=p.buildSchemes?p.buildSchemes[ps]:null;
resultPlatforms=c.buildConfig.platforms[platform][key];
}


scheme=scheme||{};
var resultCli=CLI_PROPS.includes(key)?c.program[key]:null;
var resultScheme=scheme[key];
var resultCommon=c.buildConfig.common[key];

var result=_getValueOrMergedObject(resultCli,resultScheme,resultPlatforms,resultCommon);

(0,_logger.logTask)("getConfigProp:"+platform+":"+key+":"+result,_chalk.default.grey);
if(result===null||result===undefined)return defaultVal;
return result;
};exports.getConfigProp=getConfigProp;

var getJsBundleFileDefaults={
android:'super.getJSBundleFile()',
androidtv:'super.getJSBundleFile()',

androidwear:'"assets://index.androidwear.bundle"'};exports.getJsBundleFileDefaults=getJsBundleFileDefaults;


var getAppId=function getAppId(c,platform){
var id=getConfigProp(c,platform,'id');
var idSuffix=getConfigProp(c,platform,'idSuffix');
return idSuffix?""+id+idSuffix:id;
};exports.getAppId=getAppId;

var getAppTitle=function getAppTitle(c,platform){return getConfigProp(c,platform,'title');};exports.getAppTitle=getAppTitle;

var getAppVersion=function getAppVersion(c,platform){return c.buildConfig.platforms[platform].version||c.buildConfig.common.version||c.files.project.package.version;};exports.getAppVersion=getAppVersion;

var getAppAuthor=function getAppAuthor(c,platform){return c.buildConfig.platforms[platform].author||c.buildConfig.common.author||c.files.project.package.author;};exports.getAppAuthor=getAppAuthor;

var getAppLicense=function getAppLicense(c,platform){return c.buildConfig.platforms[platform].license||c.buildConfig.common.license||c.files.project.package.license;};exports.getAppLicense=getAppLicense;

var getEntryFile=function getEntryFile(c,platform){return c.buildConfig.platforms[platform].entryFile;};exports.getEntryFile=getEntryFile;

var getGetJsBundleFile=function getGetJsBundleFile(c,platform){return c.buildConfig.platforms[platform].getJsBundleFile||getJsBundleFileDefaults[platform];};exports.getGetJsBundleFile=getGetJsBundleFile;

var getAppDescription=function getAppDescription(c,platform){return c.buildConfig.platforms[platform].description||c.buildConfig.common.description||c.files.project.package.description;};exports.getAppDescription=getAppDescription;

var getAppVersionCode=function getAppVersionCode(c,platform){
if(c.buildConfig.platforms[platform].versionCode){
return c.buildConfig.platforms[platform].versionCode;
}
if(c.buildConfig.common.versionCode){
return c.buildConfig.common.versionCode;
}
var version=getAppVersion(c,platform);

var vc='';
version.
split('-')[0].
split('.').
forEach(function(v){
vc+=v.length>1?v:"0"+v;
});
return Number(vc).toString();
};exports.getAppVersionCode=getAppVersionCode;

var logErrorPlatform=function logErrorPlatform(platform,resolve){
(0,_logger.logError)("Platform: "+_chalk.default.white(platform)+" doesn't support command: "+_chalk.default.white(c.command));
resolve&&resolve();
};exports.logErrorPlatform=logErrorPlatform;

var isPlatformActive=function isPlatformActive(c,platform,resolve){
if(!c.buildConfig||!c.buildConfig.platforms){
(0,_logger.logError)("Looks like your appConfigFile is not configured properly! check "+_chalk.default.white(c.paths.appConfig.config)+" location.");
if(resolve)resolve();
return false;
}
if(!c.buildConfig.platforms[platform]){
console.log("Platform "+platform+" not configured for "+c.runtime.appId+". skipping.");
if(resolve)resolve();
return false;
}
return true;
};exports.isPlatformActive=isPlatformActive;

var PLATFORM_RUNS={};exports.PLATFORM_RUNS=PLATFORM_RUNS;

var configureIfRequired=function configureIfRequired(c,platform){return new Promise(function(resolve,reject){
(0,_logger.logTask)("_configureIfRequired:"+platform);

if(PLATFORM_RUNS[platform]){
resolve();
return;
}
PLATFORM_RUNS[platform]=true;var
device=c.program.device;


var nc=spawnCommand(c,{
command:'configure',
program:{
appConfig:c.id,
update:false,
platform:platform,
device:device}});



if(c.program.reset){
(0,_platform.cleanPlatformBuild)(c,platform).
then(function(){return(0,_projectParser.cleanPlaformAssets)(c);}).
then(function(){return(0,_platform.createPlatformBuild)(c,platform);}).
then(function(){return(0,_app.default)(nc);}).
then(function(){return resolve(c);}).
catch(function(e){return reject(e);});
}else{
(0,_platform.createPlatformBuild)(c,platform).
then(function(){return(0,_app.default)(nc);}).
then(function(){return resolve(c);}).
catch(function(e){return reject(e);});
}
});};exports.configureIfRequired=configureIfRequired;

var writeCleanFile=function writeCleanFile(source,destination,overrides){

if(!_fs.default.existsSync(source)){
(0,_logger.logError)("Cannot write file. source path doesn't exists: "+source);
return;
}
if(!_fs.default.existsSync(destination)){
(0,_logger.logWarning)("destination path doesn't exists: "+destination+". will create new one");

}
var pFile=_fs.default.readFileSync(source,'utf8');
var pFileClean=pFile;
overrides.forEach(function(v){
var regEx=new RegExp(v.pattern,'g');
pFileClean=pFileClean.replace(regEx,v.override);
});

_fs.default.writeFileSync(destination,pFileClean,'utf8');
};exports.writeCleanFile=writeCleanFile;

var _getScheme=function _getScheme(c){return c.program.scheme||'debug';};

var getBuildsFolder=function getBuildsFolder(c,platform,customPath){
var pp=customPath||c.paths.appConfig.dir;



var p=_path.default.join(pp,"builds/"+platform+"@"+_getScheme(c));
if(_fs.default.existsSync(p))return p;
return _path.default.join(pp,"builds/"+platform);
};exports.getBuildsFolder=getBuildsFolder;

var getIP=function getIP(){return _ip.default.address();};exports.getIP=getIP;

var cleanPlatformIfRequired=function cleanPlatformIfRequired(c,platform){return new Promise(function(resolve,reject){
if(c.program.reset){
(0,_logger.logInfo)("You passed "+_chalk.default.white('-r')+" argument. paltform "+_chalk.default.white(platform)+" will be cleaned up first!");
(0,_platform.cleanPlatformBuild)(c,platform).
then(function(){return resolve(c);}).
catch(function(e){return reject(e);});
}else{
resolve();
}
});};exports.cleanPlatformIfRequired=cleanPlatformIfRequired;

var checkPortInUse=function checkPortInUse(c,platform,port){return new Promise(function(resolve,reject){
(0,_detectPort.default)(port,function(err,availablePort){
if(err){
reject(err);
return;
}
resolve(port!==availablePort);
});
});};exports.checkPortInUse=checkPortInUse;

var resolveNodeModulePath=function resolveNodeModulePath(c,filePath){
var pth=_path.default.join(c.paths.rnv.nodeModulesDir,filePath);
if(!_fs.default.existsSync(pth)){
pth=_path.default.join(c.paths.project.nodeModulesDir,filePath);
}
return pth;
};exports.resolveNodeModulePath=resolveNodeModulePath;

var getBuildFilePath=function getBuildFilePath(c,platform,filePath){

var sp=_path.default.join(getAppTemplateFolder(c,platform),filePath);

var sp2=_path.default.join(getBuildsFolder(c,platform,c.paths.project.projectConfig.dir),filePath);
if(_fs.default.existsSync(sp2))sp=sp2;

var sp3=_path.default.join(getBuildsFolder(c,platform),filePath);
if(_fs.default.existsSync(sp3))sp=sp3;
return sp;
};exports.getBuildFilePath=getBuildFilePath;

var waitForEmulator=function waitForEmulator(c,cli,command,callback){var attempts,maxAttempts,CHECK_INTEVAL,maxErrorLength,spinner;return _regenerator.default.async(function waitForEmulator$(_context){while(1){switch(_context.prev=_context.next){case 0:
attempts=0;
maxAttempts=10;
CHECK_INTEVAL=2000;
maxErrorLength=c.program.maxErrorLength;
spinner=(0,_ora.default)('Waiting for emulator to boot...').start();return _context.abrupt("return",

new Promise(function(resolve,reject){
var interval=setInterval(function(){
(0,_exec.execCLI)(c,cli,command,{silent:true,timeout:10000,maxErrorLength:maxErrorLength}).
then(function(resp){
if(callback(resp)){
clearInterval(interval);
spinner.succeed();
return resolve(true);
}
attempts++;
if(attempts===maxAttempts){
clearInterval(interval);
spinner.fail('Can\'t connect to the running emulator. Try restarting it.');
return reject('Can\'t connect to the running emulator. Try restarting it.');
}
}).catch(function(){
attempts++;
if(attempts>maxAttempts){
clearInterval(interval);
spinner.fail('Can\'t connect to the running emulator. Try restarting it.');
return reject('Can\'t connect to the running emulator. Try restarting it.');
}
});
},CHECK_INTEVAL);
}));case 6:case"end":return _context.stop();}}});};exports.waitForEmulator=waitForEmulator;


var waitForWebpack=function waitForWebpack(port){
(0,_logger.logTask)("waitForWebpack:"+port);
var attempts=0;
var maxAttempts=10;
var CHECK_INTEVAL=2000;
var spinner=(0,_ora.default)('Waiting for webpack to finish...').start();
var localIp=_fileutils.isRunningOnWindows?'127.0.0.1':'0.0.0.0';

return new Promise(function(resolve,reject){
var interval=setInterval(function(){
_axios.default.get("http://"+localIp+":"+port).then(function(res){
if(res.status===200){
var isReady=res.data.toString().includes('<!DOCTYPE html>');
if(isReady){
clearInterval(interval);
spinner.succeed();
return resolve(true);
}
}
attempts++;
if(attempts===maxAttempts){
clearInterval(interval);
spinner.fail('Can\'t connect to webpack. Try restarting it.');
return reject('Can\'t connect to webpack. Try restarting it.');
}
}).catch(function(){
attempts++;
if(attempts>maxAttempts){
clearInterval(interval);
spinner.fail('Can\'t connect to webpack. Try restarting it.');
return reject('Can\'t connect to webpack. Try restarting it.');
}
});
},CHECK_INTEVAL);
});
};exports.waitForWebpack=waitForWebpack;

var parseErrorMessage=function parseErrorMessage(text){var maxErrorLength=arguments.length>1&&arguments[1]!==undefined?arguments[1]:800;
var errors=[];
var toSearch=/(exception|error|fatal|\[!])/i;

var extractError=function extractError(t){
var errorFound=t?t.search(toSearch):-1;
if(errorFound===-1)return errors.length?errors.join(' '):false;
var usefulString=t.substring(errorFound);
var extractedError=usefulString.substring(0,maxErrorLength);
if(extractedError.length===maxErrorLength)extractedError+='...';
errors.push(extractedError);
var newString=usefulString.substring(100);
return extractError(newString);
};

return extractError(text);
};exports.parseErrorMessage=parseErrorMessage;var _default=












{
getBuildFilePath:getBuildFilePath,
getBuildsFolder:getBuildsFolder,
configureEntryPoints:_projectParser.configureEntryPoints,
logWelcome:_logger.logWelcome,
isPlatformSupported:isPlatformSupported,
isBuildSchemeSupported:isBuildSchemeSupported,
isPlatformSupportedSync:isPlatformSupportedSync,
getAppFolder:getAppFolder,
getAppTemplateFolder:getAppTemplateFolder,
logTask:_logger.logTask,
logComplete:_logger.logComplete,
logError:_logger.logError,
initializeBuilder:initializeBuilder,
startBuilder:startBuilder,
logDebug:_logger.logDebug,
logInfo:_logger.logInfo,
logErrorPlatform:logErrorPlatform,
isPlatformActive:isPlatformActive,
isSdkInstalled:isSdkInstalled,
checkSdk:checkSdk,
logEnd:_logger.logEnd,
logWarning:_logger.logWarning,
configureIfRequired:configureIfRequired,
getAppId:getAppId,
getAppTitle:getAppTitle,
getAppVersion:getAppVersion,
getAppVersionCode:getAppVersionCode,
writeCleanFile:writeCleanFile,
getEntryFile:getEntryFile,
getGetJsBundleFile:getGetJsBundleFile,
getAppConfigId:getAppConfigId,
getAppDescription:getAppDescription,
getAppAuthor:getAppAuthor,
getAppLicense:getAppLicense,
logSuccess:_logger.logSuccess,
getConfigProp:getConfigProp,
getIP:getIP,
cleanPlatformIfRequired:cleanPlatformIfRequired,
checkPortInUse:checkPortInUse,
resolveNodeModulePath:resolveNodeModulePath,
configureRnvGlobal:_configParser.configureRnvGlobal,
waitForEmulator:waitForEmulator,
parseErrorMessage:parseErrorMessage};exports.default=_default;