| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import BuglySDK from "../sdk/BuglySDK";
- import FileUtil from "../utils/FileUtil";
- import TimeUtil from "../utils/TimeUtil";
- import AudioSystem from "./AudioSystem";
- import DataSystem from "./DataSystem";
- import HttpSystem from "./HttpSystem";
- import LoaderSystem from "../utils/LoadResUtil";
- import LogUtil from "../utils/LogUtil";
- import LoadResUtil from "../utils/LoadResUtil";
- class MKSystem {
- constructor() {
- this.init();
- }
- /** 工具 */
- time: TimeUtil;
- file: FileUtil;
- log:LogUtil;
- loadRes:LoadResUtil;
- /** SDK */
- bugly:BuglySDK;
-
- /** 系统管理 */
- loader: LoaderSystem;
- data:DataSystem;
- http:HttpSystem;
- audio:AudioSystem;
- init() {
- //工具
- this.time = new TimeUtil();
- this.file = new FileUtil();
- this.log = new LogUtil();
- this.loadRes = new LoadResUtil();
- //sdk
- this.bugly = new BuglySDK();
- //system
- this.loader = new LoaderSystem();
- this.audio = new AudioSystem();
- this.data = new DataSystem();
- this.http = new HttpSystem();
- }
- }
- declare global {
- const mk: MKSystem;
- }
- window['mk'] = new MKSystem();
|