diff --git a/base_sdk/BUILD.gn b/base_sdk/BUILD.gn index d50ad8e8e1e9b5c759a7b4150f25e045b785e824..698bed611c7816c0aed192b68b382b47821eb52d 100644 --- a/base_sdk/BUILD.gn +++ b/base_sdk/BUILD.gn @@ -53,6 +53,7 @@ generate_static_abc("base_transfer") { "./transfer/kitRegister/display.ets", "./transfer/kitRegister/screen.ets", "./transfer/kitRegister/mediaLibraryKit.ets", + "./transfer/kitRegister/udmf.ets", ] is_boot_abc = "True" device_dst_file = "/system/framework/base_transfer.abc" diff --git a/base_sdk/transfer/kitRegister/registerMain.ets b/base_sdk/transfer/kitRegister/registerMain.ets index a8d7cb2c8d3bfb30c088e3866529dba9643ec0c9..ba97bc51b5de961fbe2da165d514c78503680b82 100644 --- a/base_sdk/transfer/kitRegister/registerMain.ets +++ b/base_sdk/transfer/kitRegister/registerMain.ets @@ -29,6 +29,7 @@ import { registerCameraKit } from './cameraKit.ets'; import { registerDisplay } from './display.ets'; import { registerScreen } from './screen.ets'; import { registerMediaLibraryKit } from './mediaLibraryKit.ets' +import { registerUDMF } from './udmf.ets'; export function registerMain(){ registerArkTS(); @@ -47,4 +48,5 @@ export function registerMain(){ registerDisplay(); registerScreen(); registerMediaLibraryKit(); + registerUDMF(); } \ No newline at end of file diff --git a/base_sdk/transfer/kitRegister/udmf.ets b/base_sdk/transfer/kitRegister/udmf.ets new file mode 100644 index 0000000000000000000000000000000000000000..754944e971acd04a6de6305a676f9a90ad9afe58 --- /dev/null +++ b/base_sdk/transfer/kitRegister/udmf.ets @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2025 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. + */ +import { registerStaticCB, registerDynamicCB } from '../register.ets'; + +export function registerUDMF() { + registerStaticCB('ArkData.SystemDefinedRecord', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'systemDefinedRecordTransferStatic'); + registerDynamicCB('ArkData.SystemDefinedRecord', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'systemDefinedRecordTransferDynamic'); + + registerStaticCB('ArkData.SystemDefinedForm', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'systemDefinedFormTransferStatic'); + registerDynamicCB('ArkData.SystemDefinedForm', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'systemDefinedFormTransferDynamic'); + + registerStaticCB('ArkData.SystemDefinedAppItem', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'systemDefinedAppItemTransferStatic'); + registerDynamicCB('ArkData.SystemDefinedAppItem', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'systemDefinedAppItemTransferDynamic'); + + registerStaticCB('ArkData.SystemDefinedPixelMap', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'systemDefinedPixelMapTransferStatic'); + registerDynamicCB('ArkData.SystemDefinedPixelMap', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'systemDefinedPixelMapTransferDynamic'); + + registerStaticCB('ArkData.ApplicationDefinedRecord', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'applicationDefinedRecordTransferStatic'); + registerDynamicCB('ArkData.ApplicationDefinedRecord', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'applicationDefinedRecordTransferDynamic'); + + registerStaticCB('ArkData.Summary', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'summaryTransferStatic'); + registerDynamicCB('ArkData.Summary', '@ohos.data.unifiedDataChannel', 'unifiedDataChannel', 'summaryTransferDynamic'); +} \ No newline at end of file