diff --git a/common/BUILD.gn b/common/BUILD.gn index d45c5efc..be751d49 100644 --- a/common/BUILD.gn +++ b/common/BUILD.gn @@ -16,54 +16,52 @@ import("//build/ohos_var.gni") import("//foundation/deviceprofile/device_info_manager/deviceprofile.gni") config("distributed_device_profile_common_config") { - visibility = [ ":*" ] - include_dirs = [ - "include/interfaces", - "include/constants", - "include/utils", - "//third_party/json/include", - ] + visibility = [ ":*" ] + include_dirs = [ + "include/interfaces", + "include/constants", + "include/utils", + "//third_party/json/include", + ] } ohos_shared_library("distributed_device_profile_common") { - install_enable = true + install_enable = true - sources = [ - "src/interfaces/access_control_profile.cpp", - "src/interfaces/accessee.cpp", - "src/interfaces/accesser.cpp", - "src/interfaces/characteristic_profile.cpp", - "src/interfaces/device_profile.cpp", - "src/interfaces/profile_change_listener_proxy.cpp", - "src/interfaces/profile_change_listener_stub.cpp", - "src/interfaces/service_profile.cpp", - "src/interfaces/dp_subscribe_info.cpp", - "src/interfaces/sync_completed_callback_proxy.cpp", - "src/interfaces/sync_completed_callback_stub.cpp", - "src/interfaces/sync_options.cpp", - "src/interfaces/trust_device_profile.cpp", - "src/utils/ipc_utils.cpp", - "src/utils/profile_utils.cpp", - ] + sources = [ + "src/interfaces/access_control_profile.cpp", + "src/interfaces/accessee.cpp", + "src/interfaces/accesser.cpp", + "src/interfaces/characteristic_profile.cpp", + "src/interfaces/device_profile.cpp", + "src/interfaces/dp_subscribe_info.cpp", + "src/interfaces/profile_change_listener_proxy.cpp", + "src/interfaces/profile_change_listener_stub.cpp", + "src/interfaces/service_profile.cpp", + "src/interfaces/sync_completed_callback_proxy.cpp", + "src/interfaces/sync_completed_callback_stub.cpp", + "src/interfaces/sync_options.cpp", + "src/interfaces/trust_device_profile.cpp", + "src/utils/ipc_utils.cpp", + "src/utils/profile_utils.cpp", + ] - public_configs = [ - ":distributed_device_profile_common_config" - ] + public_configs = [ ":distributed_device_profile_common_config" ] - external_deps = [ - "c_utils:utils", - "eventhandler:libeventhandler", - "hilog:libhilog", - "ipc:ipc_core", - "samgr:samgr_proxy", - "relational_store:native_rdb", - "init:libbegetutil", - "access_token:libaccesstoken_sdk", - "device_manager:devicemanagersdk", - "dmsfwk:common_sdk", - "safwk:system_ability_fwk" - ] + external_deps = [ + "access_token:libaccesstoken_sdk", + "c_utils:utils", + "device_manager:devicemanagersdk", + "dmsfwk:common_sdk", + "eventhandler:libeventhandler", + "hilog:libhilog", + "init:libbegetutil", + "ipc:ipc_core", + "relational_store:native_rdb", + "safwk:system_ability_fwk", + "samgr:samgr_proxy", + ] - part_name = "device_info_manager" - subsystem_name = "deviceprofile" + part_name = "device_info_manager" + subsystem_name = "deviceprofile" } diff --git a/common/src/utils/ipc_utils.cpp b/common/src/utils/ipc_utils.cpp index d7c88d7a..4781c33d 100644 --- a/common/src/utils/ipc_utils.cpp +++ b/common/src/utils/ipc_utils.cpp @@ -81,7 +81,7 @@ bool IpcUtils::Marshalling(MessageParcel& parcel, const std::vector& trustDeviceProfiles)