var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.taskRnvLog=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _platformManager=require("../core/platformManager");
var _sdkManager=require("../core/sdkManager");
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 taskRnvLog=function taskRnvLog(c,parentTask,originTask){return _regenerator.default.async(function taskRnvLog$(_context){while(1){switch(_context.prev=_context.next){case 0:
(0,_logger.logTask)('taskRnvLog',"parent:"+parentTask);_context.next=3;return _regenerator.default.awrap(

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


(0,_sdkManager.checkAndConfigureSdks)(c));case 5:_context.t0=

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

_constants.IOS?9:_context.t0===
_constants.TVOS?9:10;break;case 8:return _context.abrupt("return",(0,_sdkAndroid.runAndroidLog)(c));case 9:return _context.abrupt("return",
(0,_sdkXcode.runAppleLog)(c));case 10:return _context.abrupt("return",

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



{
description:'Attach logger to device or emulator and print out logs',
fn:taskRnvLog,
task:'log',
params:_constants.PARAMS.withBase(),
platforms:[
_constants.IOS,
_constants.TVOS,
_constants.ANDROID,
_constants.ANDROID_TV,
_constants.ANDROID_WEAR],

isGlobalScope:true};exports.default=_default;
//# sourceMappingURL=task.rnv.log.js.map