import BridgeBrowser from "./browser";
import BridgeWx from "./wx";
import BridgeAlipay from "./ap";
import BridgeDingtalk from "./dingtalk";
import BridgeLark from "./lark";

// 内库使用-start
import Device from "./../Device";
// 内库使用-end

/* 测试使用-start
import { Device } from 'seedsui-react'
测试使用-end */

var Bridge = {};
if (Device.platform === 'wechat' || Device.platform === 'wework' || Device.platform === 'wechatMiniprogram' || Device.platform === 'weworkMiniprogram') {
  Bridge = BridgeWx;
} else if (Device.platform === 'alipay' || Device.platform === 'alipayMiniprogram') {
  Bridge = BridgeAlipay;
} else if (Device.platform === 'dingtalk') {
  Bridge = BridgeDingtalk;
} else if (Device.platform === 'lark') {
  Bridge = BridgeLark;
} else {
  Bridge = BridgeBrowser;
}
export default Bridge;