• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2024 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 */
15export const SDK_VERSION: number = 13;
16export const ENTRY_PACKAGE_NAME_DEFAULT: string = 'entry';
17export const ENTRY_MODULE_NAME_DEFAULT: string = 'entry';
18export const PACKAGE_DIR_DEFAULT: string = 'oh_modules';
19export const PACKAGE_JSON_DEFAULT: string = 'oh-package.json5';
20export const PAGES_JSON_FILE_NAME_DEFAULT: string = 'main_pages.json';
21export const PANDA_MODE_DEFAULT: string = 'es2abc';
22export const MIN_API_VERSION_DEAFAULT: number = 50001013;
23
24// irrelevant configs to prevent application from crashing
25export const SDK_VERSION_STAGE: string = 'Canary1';
26export const BUNDLE_NAME_DEFAULT: string = 'com.example.application';
27export const ETS_LOADER_VERSION: string = '5.0.1.100';
28export const OHPM: string = 'ohpm';
29export const DEBUG: string = 'Debug';
30export const RELEASE: string = 'release';
31export const ENTRY_MODULE_VERSION_DEFAULT: string = '1.0.0';
32export const MODULE_NAME_HASH_DEFAULT: string = '1043bfc77febe75fafec0c4309faccf1';
33export const RESOURCE_TABLE_HASH_DEFAULT: string = '790527e39c8c2be7fbbc762f7966104e';
34export const RUNTIME_OS_OPENHARMONY: string = 'HIDDEN';
35export const DEVICE_TYPE: string = 'phone,tablet,2in1,wearable';
36export const NODE_JS_PATH: string = '/usr/local/nodejs';
37export const PORT_DEFAULT: string = '29900';
38export const IS_CACHE_INVALID: string = 'is_cache_invalid';
39export const ARK_COMPILER_META_INFO: string = 'ark_compiler_meta_info';
40export const STRICT_MODE_DEFAULT: object = {
41  caseSensitiveCheck: true,
42	useNormalizedOHMUrl: true,
43	noExternalImportByPath: true,
44}
45export const DEVICE_TYPES_DEFAULT = [
46	"phone",
47	"tablet",
48	"2in1",
49	"wearable"
50]
51export const PKG_JSON_FILE_HASH_DEFAULT: string = '14b2b93515e45a4ff785bb14c7b2aa25';
52export const BUILD_ID_DEFAULT: string = '202410091727251800';
53export const ARKUI_SUBSYSTEM_CODE: string = '109';
54export const TSC_SYSTEM_CODE: string = '105';
55export const ARKUI_ERROR_CODE_IN_TS_DIAGNOSTIC: string[] = [
56	'10905128', '10905239', '10905238', '10905127', '10905353', '10905237', '10905236'
57];