var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.taskRnvSwitch=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _logger=require("../../core/systemManager/logger");
var _projectManager=require("../../core/projectManager");
var _configManager=require("../../core/configManager");
var _taskManager=require("../../core/taskManager");
var _constants=require("../../core/constants");


var taskRnvSwitch=function taskRnvSwitch(c,parentTask,originTask){return _regenerator.default.async(function taskRnvSwitch$(_context){while(1){switch(_context.prev=_context.next){case 0:
(0,_logger.logTask)('taskRnvSwitch');_context.next=3;return _regenerator.default.awrap(

(0,_taskManager.executeTask)(c,_constants.TASK_PROJECT_CONFIGURE,_constants.TASK_SWITCH,originTask));case 3:_context.next=5;return _regenerator.default.awrap(

(0,_projectManager.copyRuntimeAssets)(c));case 5:_context.next=7;return _regenerator.default.awrap(
(0,_configManager.generateRuntimeConfig)(c));case 7:return _context.abrupt("return",

true);case 8:case"end":return _context.stop();}}},null,null,null,Promise);};exports.taskRnvSwitch=taskRnvSwitch;var _default=


{
description:'',
fn:taskRnvSwitch,
task:_constants.TASK_SWITCH,
params:_constants.PARAMS.withBase(),
platforms:[]};exports.default=_default;
//# sourceMappingURL=task.rnv.switch.js.map