• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16import {bchar1Test} from "bytecode_har"
17import {bytecodeHar1Test} from "bytecode_har1"
18import { promptAction } from "@kit.ArkUI";
19
20export { MainPage } from './src/main/ets/components/MainPage'
21export function sourceHarDispatchbcHarTest() {
22  bchar1Test();
23  import ("bytecode_har").then((obj :ESObject)=>{
24    console.log("sourcehar1 dynamic import bytecodehar")
25    promptAction.showToast({
26      message: "sourcehar1 dynamic import bytecodehar",
27      duration: 2000
28    });
29    obj.bchar1Test();
30  })
31
32  bytecodeHar1Test();
33  import ("bytecode_har1").then((obj :ESObject)=>{
34    console.log("dynamic import bytecodehar1")
35    promptAction.showToast({
36      message: "dynamic import bytecodehar1",
37      duration: 2000
38    });
39    obj.bytecodeHar1Test();
40  })
41}