• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use rollupObject 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
16export const SDK_VERSION: number = 10;
17export const SDK_VERSION_MOCK: number = 1;
18export const ETS_LOADER_VERSION: string = '4.1.2.3';
19
20export const BUNDLE_NAME_DEFAULT: string = 'com.example.app';
21export const ENTRY_MODULE_NAME_DEFAULT: string = 'entry';
22
23export const RUNTIME_OS_OPENHARMONY: string = 'OpenHarmony';
24export const MODULE_NAME_HASH_DEFAULT: string = '1043bfc77febe75fafec0c4309faccf1';
25export const RESOURCE_TABLE_HASH_DEFAULT: string = '790527e39c8c2be7fbbc762f7966104e';
26export const DEVICE_TYPE: string = 'default,tablet';
27
28export const NODE_JS_PATH: string = '/usr/local/nodejs';
29export const PORT_DEFAULT: string = '29900';
30
31export const CMD_DEBUG_INFO: string = '--debug-info';
32export const NODE: string = 'node';
33export const META: string = 'meta';
34
35export const ENTRYABILITY_TS_PATH_DEFAULT: string = '/src/main/entryability/EntryAbility.ts';
36export const ENTRYABILITY_JS_PATH_DEFAULT: string = '/src/main/entryability/EntryAbility.js';
37export const INDEX_ETS_PATH_DEFAULT: string = '/src/main/pages/Index.ets';
38export const INDEX_JS_PATH_DEFAULT: string = '/src/main/pages/Index.js';
39
40export const ENTRYABILITY_TS_RECORDNAME: string = '/entry/src/main/entryability/EntryAbility';
41export const ENTRYABILITY_JS_RECORDNAME: string = '/entry/src/main/entryability/EntryAbility';
42export const INDEX_ETS_RECORDNAME: string = '/entry/src/main/pages/Index';
43export const EXTNAME_MAP: string = '.map';
44
45export const ENTRYABILITY_TS_PATH: string = '/main/entryability/EntryAbility.ts';
46export const INDEX_ETS_PATH: string = '/main/pages/Index.ets';
47export const ENTRYABILITY_TS: string = 'EntryAbility.ts';
48export const INDEX_ETS: string = 'Index.ets';
49export const OH_UIABILITY: string = '@ohos:app.ability.UIAbility';
50export const OH_HILOG: string = '@ohos:hilog';
51export const OHURL_RES: string = '@bundle:com.example.app/entry/src/main/pages/Index';
52export const OHURL_SHAREDLIBRARY: string = "@bundle:UtTestApplication/sharedLibrary/ets/index";
53
54export const FILE: string = 'file';
55export const SOURCE: string = 'sources';
56export const DYNAMICIMPORT_ETS: string = 'DynamicImport.ets';
57
58export const PKG_MODULES: string = 'pkg_modules';
59export const DEBUG: string = 'debug';
60export const EXPOSE_GC: string = 'expose-gc';
61export const JSONSTRING: string = `{"mCompact":false,"mDisableHilog":false,"mDisableConsole":false,"mSimplify":false,"mTopLevel":false,"mNameObfuscation":{"mEnable":true,"mNameGeneratorType":1,"mReservedNames":[],"mRenameProperties":false,"mReservedProperties":[],"mKeepStringProperty":true},"mEnableSourceMap":true,"mEnableNameCache":true}`;
62export const MODULES: string = 'oh-modules';
63export const LOADER_AOTMODE: string = 'loader_aotMode.json';
64export const UPDATESOURCEMAP: string = 'updateSourceMap.json';
65export const ENTRYABILITY_JS: string = 'entry/src/main/entryability/EntryAbility.js';
66export const TEST: string = 'test';
67export const NEWFILE: string = 'newFile';