var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.taskRnvConfigure=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _platformManager=require("../core/platformManager");
var _logger=require("../core/systemManager/logger");
var _constants=require("../core/constants");










var _sdkWebpack=require("../sdk-webpack");
var _sdkTizen=require("../sdk-tizen");
var _sdkWebos=require("../sdk-webos");
var _sdkFirefox=require("../sdk-firefox");
var _chromecast=require("../sdk-webpack/chromecast");
var _engineManager=require("../core/engineManager");

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

(0,_engineManager.executeTask)(c,_constants.TASK_PLATFORM_CONFIGURE,_constants.TASK_CONFIGURE,originTask));case 3:_context.next=5;return _regenerator.default.awrap(

(0,_platformManager.copySharedPlatforms)(c));case 5:if(!(

c.program.only&&!!parentTask)){_context.next=7;break;}return _context.abrupt("return",
true);case 7:_context.t0=


c.platform;_context.next=_context.t0===
_constants.WEB?10:_context.t0===

_constants.TIZEN?11:_context.t0===
_constants.TIZEN_MOBILE?11:_context.t0===
_constants.TIZEN_WATCH?11:_context.t0===

_constants.WEBOS?12:_context.t0===

_constants.CHROMECAST?13:_context.t0===

_constants.FIREFOX_OS?14:_context.t0===
_constants.FIREFOX_TV?14:_context.t0===
_constants.KAIOS?14:15;break;case 10:return _context.abrupt("return",(0,_sdkWebpack.configureWebProject)(c));case 11:return _context.abrupt("return",(0,_sdkTizen.configureTizenProject)(c));case 12:return _context.abrupt("return",(0,_sdkWebos.configureWebOSProject)(c));case 13:return _context.abrupt("return",(0,_chromecast.configureChromecastProject)(c));case 14:return _context.abrupt("return",
(0,_sdkFirefox.configureKaiOSProject)(c));case 15:return _context.abrupt("return",

(0,_platformManager.logErrorPlatform)(c));case 16:case"end":return _context.stop();}}},null,null,null,Promise);};exports.taskRnvConfigure=taskRnvConfigure;var _default=



{
description:'Configure current project',
fn:taskRnvConfigure,
task:'configure',
params:_constants.PARAMS.withBase(_constants.PARAMS.withConfigure()),
platforms:[
_constants.WEB,
_constants.TIZEN,
_constants.WEBOS,
_constants.TIZEN_MOBILE,
_constants.TIZEN_WATCH,
_constants.KAIOS,
_constants.FIREFOX_OS,
_constants.FIREFOX_TV,
_constants.CHROMECAST]};exports.default=_default;
//# sourceMappingURL=task.rnv.configure.js.map