mirror of
https://github.com/Gongxh0901/kunpolibrary
synced 2025-08-04 22:38:38 +00:00
28 lines
731 B
TypeScript
28 lines
731 B
TypeScript
|
/**
|
||
|
* @Author: Gongxh
|
||
|
* @Date: 2025-03-22
|
||
|
* @Description:
|
||
|
*/
|
||
|
|
||
|
import { GlobalEvent } from "kunpocc-event";
|
||
|
|
||
|
export class SDKHelper {
|
||
|
private static _manifestUrl: string = "";
|
||
|
public static getSystemInfo(): Promise<{ version: string, build: number }> {
|
||
|
return new Promise((resolve, reject) => {
|
||
|
KunpoSDK.SDKHelper.getInstance().getSystemInfo();
|
||
|
GlobalEvent.addOnce("calljs::getSystemInfo", (data: { version: string, build: number }) => {
|
||
|
resolve(data);
|
||
|
}, this);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public static set manifestUrl(url: string) {
|
||
|
this._manifestUrl = url;
|
||
|
}
|
||
|
|
||
|
public static get manifestUrl(): string {
|
||
|
return this._manifestUrl;
|
||
|
}
|
||
|
}
|