import { CrashSightMain} from 'crashsight';
import { GetFromGlobalThis } from 'crashsight/../../src/main/ets/common/GlobalThisUtil'
import { common, Context } from '@kit.AbilityKit';

export function RegisterCrashSightBridge() {
  let register: Record<string, Object> = {};
  register["CrashSightObj"] = new CrashSightClass();
  return register;
}


export class CrashSightClass {

  initContext(): number {

    let context = GetFromGlobalThis("context") as Context;
    CrashSightMain.getInstance().initContextInJS(context);
    return 1;
  }
}