"use strict";

var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
_Object$defineProperty(exports, "__esModule", {
  value: true
});
exports.createADBDebugger = createADBDebugger;
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
var _debuglog = _interopRequireDefault(require("./debuglog"));
var _module = _interopRequireDefault(require("./module"));
/**
 * Copyright (C) 2017, hapjs.org. All rights reserved.
 */

async function createADBDebugger(option) {
  return new _promise.default((resolve, reject) => {
    (0, _debuglog.default)(`createADBDebugger(): start`);
    const adbModule = new _module.default(option);
    console.info(`### App Server ### 完成创建adb调试器。您可以通过usb线连入手机调试`);
    resolve(adbModule);
  });
}