var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.taskRnvBuild=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 _sdkAndroid=require("../sdk-android");


var _engineManager=require("../core/engineManager");

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

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

platform;_context.next=_context.t0===
_constants.ANDROID?7:_context.t0===
_constants.ANDROID_TV?7:_context.t0===
_constants.ANDROID_WEAR?7:_context.t0===

_constants.IOS?8:_context.t0===
_constants.TVOS?8:11;break;case 7:return _context.abrupt("return",(0,_sdkAndroid.buildAndroid)(c));case 8:if(!(
parentTask===_constants.TASK_EXPORT)){_context.next=10;break;}return _context.abrupt("return",

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

(0,_sdkXcode.buildXcodeProject)(c,platform));case 11:return _context.abrupt("return",

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



{
description:'Build project binary',
fn:taskRnvBuild,
task:'build',
params:_constants.PARAMS.withBase(_constants.PARAMS.withConfigure()),
platforms:[
_constants.IOS,
_constants.TVOS,
_constants.ANDROID,
_constants.ANDROID_TV,
_constants.ANDROID_WEAR]};exports.default=_default;
//# sourceMappingURL=task.rnv.build.js.map