diff --git a/runtime/main/extend/systemplugin/napi/global/resource.js b/runtime/main/extend/systemplugin/napi/global/resource.js new file mode 100644 index 00000000..8d2d8906 --- /dev/null +++ b/runtime/main/extend/systemplugin/napi/global/resource.js @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export const Resource = { + bundleName : '[PC Preview] unknow string', + moduleName : '[PC Preview] unknow string', + id : '[PC Preview] unknow number' +} \ No newline at end of file diff --git a/runtime/main/extend/systemplugin/napi/ohos_resourceManager.js b/runtime/main/extend/systemplugin/napi/ohos_resourceManager.js index 5d5b5283..d6bb618e 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_resourceManager.js +++ b/runtime/main/extend/systemplugin/napi/ohos_resourceManager.js @@ -36,7 +36,8 @@ export function mockResourceManager() { SCREEN_MDPI : 160, SCREEN_LDPI : 240, SCREEN_XLDPI : 320, - SCREEN_XXLDPI : 480 + SCREEN_XXLDPI : 480, + SCREEN_XXXLDPI : 640 } const DeviceType = {