From 5044146b9353b7e2b1f32caa1d03db2240133843 Mon Sep 17 00:00:00 2001 From: zhang Date: Tue, 30 Aug 2022 16:29:38 +0800 Subject: [PATCH] fix:add the publishAs field in bundle.json Signed-off-by: zhang --- activity_recognition/bundle.json | 10 ++++++++-- audio/bundle.json | 10 ++++++++-- battery/bundle.json | 10 ++++++++-- bluetooth/bundle.json | 10 ++++++++-- camera/bundle.json | 10 ++++++++-- codec/bundle.json | 10 ++++++++-- display/bundle.json | 6 +++++- distributed_camera/bundle.json | 10 ++++++++-- face_auth/bundle.json | 10 ++++++++-- fingerprint_auth/bundle.json | 10 ++++++++-- input/bundle.json | 10 ++++++++-- light/bundle.json | 10 ++++++++-- location/agnss/bundle.json | 10 ++++++++-- location/geofence/bundle.json | 10 ++++++++-- location/gnss/bundle.json | 10 ++++++++-- memorytracker/bundle.json | 10 ++++++++-- motion/bundle.json | 10 ++++++++-- nfc/bundle.json | 10 ++++++++-- partitionslot/bundle.json | 10 ++++++++-- pin_auth/bundle.json | 10 ++++++++-- power/bundle.json | 10 ++++++++-- ril/bundle.json | 10 ++++++++-- sensor/bundle.json | 10 ++++++++-- thermal/bundle.json | 10 ++++++++-- usb/bundle.json | 10 ++++++++-- user_auth/bundle.json | 10 ++++++++-- vibrator/bundle.json | 10 ++++++++-- wlan/bundle.json | 10 ++++++++-- 28 files changed, 221 insertions(+), 55 deletions(-) diff --git a/activity_recognition/bundle.json b/activity_recognition/bundle.json index 38562388..1a29cc4e 100644 --- a/activity_recognition/bundle.json +++ b/activity_recognition/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_act_recg", + "name": "@ohos/drivers_interface_act_recg", "description": "activity recognition device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/activity_recognition" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_act_recg", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/audio/bundle.json b/audio/bundle.json index 3bf25fa7..94b81228 100644 --- a/audio/bundle.json +++ b/audio/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_audio", + "name": "@ohos/drivers_interface_audio", "description": "audio driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/audio" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_audio", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/battery/bundle.json b/battery/bundle.json index fea2375f..ed71c209 100644 --- a/battery/bundle.json +++ b/battery/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_battery", + "name": "@ohos/drivers_interface_battery", "description": "battery device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/battery" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_battery", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/bluetooth/bundle.json b/bluetooth/bundle.json index 2ad48799..be6a1a19 100644 --- a/bluetooth/bundle.json +++ b/bluetooth/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_bluetooth", + "name": "@ohos/drivers_interface_bluetooth", "description": "bluetooth device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/bluetooth" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_bluetooth", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/camera/bundle.json b/camera/bundle.json index fb43a339..7a3fbc75 100644 --- a/camera/bundle.json +++ b/camera/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_camera", + "name": "@ohos/drivers_interface_camera", "description": "camera device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/camera" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_camera", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/codec/bundle.json b/codec/bundle.json index 4e25ea42..8343c683 100644 --- a/codec/bundle.json +++ b/codec/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_codec", + "name": "@ohos/drivers_interface_codec", "description": "codec device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/codec" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_codec", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ ] }, "build": { diff --git a/display/bundle.json b/display/bundle.json index af5f7e9e..56e254a0 100755 --- a/display/bundle.json +++ b/display/bundle.json @@ -1,9 +1,13 @@ { - "name": "drivers_interface_display", + "name": "@ohos/drivers_interface_display", "version": "3.1.0", "description": "display device driver interface", "homePage": "https://gitee.com/openharmony", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/display" + }, "language": "", "private": false, "scripts": {}, diff --git a/distributed_camera/bundle.json b/distributed_camera/bundle.json index d1635751..b034a9a0 100644 --- a/distributed_camera/bundle.json +++ b/distributed_camera/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_distributed_camera", + "name": "@ohos/drivers_interface_distributed_camera", "description": "drivers interface distributed camera", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/distributed_camera" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_distributed_camera", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/face_auth/bundle.json b/face_auth/bundle.json index 8951df5c..42eb0888 100644 --- a/face_auth/bundle.json +++ b/face_auth/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_face_auth", + "name": "@ohos/drivers_interface_face_auth", "description": "face auth device driver", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/face_auth" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_face_auth", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ ] }, "build": { diff --git a/fingerprint_auth/bundle.json b/fingerprint_auth/bundle.json index cb311c1a..d2850191 100644 --- a/fingerprint_auth/bundle.json +++ b/fingerprint_auth/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_fingerprint_auth", + "name": "@ohos/drivers_interface_fingerprint_auth", "description": "fingerprint_auth device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/fingerprint_auth" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_fingerprint_auth", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ ] }, "build": { diff --git a/input/bundle.json b/input/bundle.json index 4a0c07c5..1d57c52b 100644 --- a/input/bundle.json +++ b/input/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_input", + "name": "@ohos/drivers_interface_input", "description": "input device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/input" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_input", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/light/bundle.json b/light/bundle.json index 603be403..e587e11c 100644 --- a/light/bundle.json +++ b/light/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_light", + "name": "@ohos/drivers_interface_light", "description": "light device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/light" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_light", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/location/agnss/bundle.json b/location/agnss/bundle.json index 81d46d9c..8897872c 100644 --- a/location/agnss/bundle.json +++ b/location/agnss/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_location_agnss", + "name": "@ohos/drivers_interface_location_agnss", "description": "agnss device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/location/agnss" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_location_agnss", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/location/geofence/bundle.json b/location/geofence/bundle.json index c72f5614..a2881d7f 100644 --- a/location/geofence/bundle.json +++ b/location/geofence/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_location_geofence", + "name": "@ohos/drivers_interface_location_geofence", "description": "geofence device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/location/geofence" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_location_geofence", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/location/gnss/bundle.json b/location/gnss/bundle.json index 80f5c7c1..b74fe0f0 100644 --- a/location/gnss/bundle.json +++ b/location/gnss/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_location_gnss", + "name": "@ohos/drivers_interface_location_gnss", "description": "gnss device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/location/gnss" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_location_gnss", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/memorytracker/bundle.json b/memorytracker/bundle.json index d03fd701..71efc79f 100644 --- a/memorytracker/bundle.json +++ b/memorytracker/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_memorytracker", + "name": "@ohos/drivers_interface_memorytracker", "description": "memorytracker_hdf", "version": "3.1", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/memorytracker" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_memorytracker", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [] + "third_party": [] }, "build": { "sub_component": [ diff --git a/motion/bundle.json b/motion/bundle.json index 1ac677f2..a10a52a5 100644 --- a/motion/bundle.json +++ b/motion/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_motion", + "name": "@ohos/drivers_interface_motion", "description": "motion device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/motion" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_motion", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/nfc/bundle.json b/nfc/bundle.json index 64aae952..52b4a851 100644 --- a/nfc/bundle.json +++ b/nfc/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_nfc", + "name": "@ohos/drivers_interface_nfc", "description": "drivers interface nfc", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/nfc" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_nfc", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/partitionslot/bundle.json b/partitionslot/bundle.json index 91437529..a4530963 100644 --- a/partitionslot/bundle.json +++ b/partitionslot/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_partitionslot", + "name": "@ohos/drivers_interface_partitionslot", "description": "partitionslot device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/partitionslot" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_partitionslot", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/pin_auth/bundle.json b/pin_auth/bundle.json index 393c4614..4880c5cc 100644 --- a/pin_auth/bundle.json +++ b/pin_auth/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_pin_auth", + "name": "@ohos/drivers_interface_pin_auth", "description": "pinauth device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/pin_auth" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_pin_auth", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/power/bundle.json b/power/bundle.json index da283bc4..bae4e973 100644 --- a/power/bundle.json +++ b/power/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_power", + "name": "@ohos/drivers_interface_power", "description": "power device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/power" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_power", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/ril/bundle.json b/ril/bundle.json index ad61f7db..374faf74 100644 --- a/ril/bundle.json +++ b/ril/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_ril", + "name": "@ohos/drivers_interface_ril", "description": "telephony ril device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/ril" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_ril", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/sensor/bundle.json b/sensor/bundle.json index f7799608..d5aa54f2 100644 --- a/sensor/bundle.json +++ b/sensor/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_sensor", + "name": "@ohos/drivers_interface_sensor", "description": "sensor device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/sensor" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_sensor", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/thermal/bundle.json b/thermal/bundle.json index 87da34c6..a0bd92b7 100644 --- a/thermal/bundle.json +++ b/thermal/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_thermal", + "name": "@ohos/drivers_interface_thermal", "description": "thermal device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/thermal" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_thermal", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/usb/bundle.json b/usb/bundle.json index 89d7e7a1..3bce4f23 100644 --- a/usb/bundle.json +++ b/usb/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_usb", + "name": "@ohos/drivers_interface_usb", "description": "drivers interface usb", "version": "3.1", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/usb" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_usb", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/user_auth/bundle.json b/user_auth/bundle.json index fb8206c2..df8f157b 100644 --- a/user_auth/bundle.json +++ b/user_auth/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_user_auth", + "name": "@ohos/drivers_interface_user_auth", "description": "user_auth device driver", "version": "3.1", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/user_auth" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_user_auth", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/vibrator/bundle.json b/vibrator/bundle.json index c984df6d..04b33609 100644 --- a/vibrator/bundle.json +++ b/vibrator/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_vibrator", + "name": "@ohos/drivers_interface_vibrator", "description": "vibrator device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/vibrator" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_vibrator", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, diff --git a/wlan/bundle.json b/wlan/bundle.json index 2115e5e6..fa20900d 100644 --- a/wlan/bundle.json +++ b/wlan/bundle.json @@ -1,8 +1,14 @@ { - "name": "drivers_interface_wlan", + "name": "@ohos/drivers_interface_wlan", "description": "wlan device driver interface", "version": "3.2", "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "drivers/interface/wlan" + }, + "dirs": {}, + "scripts": {}, "component": { "name": "drivers_interface_wlan", "subsystem": "hdf", @@ -17,7 +23,7 @@ "hiviewdfx_hilog_native", "utils_base" ], - "third_part": [ + "third_party": [ "bounds_checking_function" ] }, -- Gitee