var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.taskRnvExport=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 _sdkXcode=require("../sdk-xcode");
var _engineManager=require("../core/engineManager");


var taskRnvExport=function taskRnvExport(c,parentTask,originTask){var platform;return _regenerator.default.async(function taskRnvExport$(_context){while(1){switch(_context.prev=_context.next){case 0:
(0,_logger.logTask)('taskRnvExport',"parent:"+parentTask);
platform=c.platform;_context.next=4;return _regenerator.default.awrap(

(0,_engineManager.executeTask)(c,_constants.TASK_BUILD,_constants.TASK_EXPORT,originTask));case 4:_context.t0=

platform;_context.next=_context.t0===
_constants.IOS?7:_context.t0===
_constants.TVOS?7:_context.t0===

_constants.ANDROID?8:_context.t0===
_constants.ANDROID_TV?8:_context.t0===
_constants.ANDROID_WEAR?8:9;break;case 7:return _context.abrupt("return",(0,_sdkXcode.exportXcodeProject)(c,platform));case 8:return _context.abrupt("return",

true);case 9:return _context.abrupt("return",

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



{
description:'Export the app into deployable binary',
fn:taskRnvExport,
task:'export',
params:[],
platforms:[
_constants.IOS,
_constants.TVOS,
_constants.ANDROID,
_constants.ANDROID_TV,
_constants.ANDROID_WEAR]};exports.default=_default;
//# sourceMappingURL=task.rnv.export.js.map