1e484b35bSopenharmony_ci/*
2e484b35bSopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
3e484b35bSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4e484b35bSopenharmony_ci * you may not use this file except in compliance with the License.
5e484b35bSopenharmony_ci * You may obtain a copy of the License at
6e484b35bSopenharmony_ci *
7e484b35bSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8e484b35bSopenharmony_ci *
9e484b35bSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10e484b35bSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11e484b35bSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12e484b35bSopenharmony_ci * See the License for the specific language governing permissions and
13e484b35bSopenharmony_ci * limitations under the License.
14e484b35bSopenharmony_ci */
15e484b35bSopenharmony_ci
16e484b35bSopenharmony_ci/**
17e484b35bSopenharmony_ci * @fileOverview framework entry.
18e484b35bSopenharmony_ci */
19e484b35bSopenharmony_ci
20e484b35bSopenharmony_ciimport Vm from './model';
21e484b35bSopenharmony_ciexport { createInstance, destroyInstance } from './manage/instance/life';
22e484b35bSopenharmony_ciimport { registerModules } from './manage/instance/register';
23e484b35bSopenharmony_ciexport { receiveTasks } from './manage/event/bridge';
24e484b35bSopenharmony_ciexport { getRoot } from './manage/instance/misc';
25e484b35bSopenharmony_ciimport {
26e484b35bSopenharmony_ci  appDestroy,
27e484b35bSopenharmony_ci  appError,
28e484b35bSopenharmony_ci  appShow,
29e484b35bSopenharmony_ci  appHide
30e484b35bSopenharmony_ci} from './app/index';
31e484b35bSopenharmony_ci
32e484b35bSopenharmony_ci/**
33e484b35bSopenharmony_ci * Prevent modification of Vm and Vm.prototype.
34e484b35bSopenharmony_ci */
35e484b35bSopenharmony_ciObject.freeze(Vm);
36e484b35bSopenharmony_ci
37e484b35bSopenharmony_ciexport { registerModules, appDestroy, appError, appShow, appHide };
38