From 880f95c49eb2393bdb683ad9731ab97bd34fb4fb Mon Sep 17 00:00:00 2001 From: hellohyh001 Date: Wed, 12 Jan 2022 21:17:15 +0800 Subject: [PATCH 1/3] Signed-off-by:hellohyh001 Signed-off-by: hellohyh001 --- bundle.json | 33 +++++++++++++++++++++++++++++++++ frameworks/src/BUILD.gn | 2 +- services/BUILD.gn | 2 +- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 bundle.json mode change 100755 => 100644 frameworks/src/BUILD.gn mode change 100755 => 100644 services/BUILD.gn diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000..f50a1a7 --- /dev/null +++ b/bundle.json @@ -0,0 +1,33 @@ +{ + "name": "@openharmony/sensor_lite", + "description": "Obtaining sensor data", + "version": "3.1", + "license": "Apache License 2.0", + "component": { + "name": "sensor_lite", + "subsystem": "sensors", + "syscap": [], + "features": [], + "adapted_system_type": [ "small" ], + "rom": "92KB", + "ram": "~200KB", + "deps": { + "components": [ + "samgr_lite", + "ipc_lite", + "utils_base", + "peripheral_sensor" + ], + "third_party": [] + }, + "build": { + "sub_component": [ + "//base/sensors/sensor_lite/services:sensor_service", + "//base/sensors/sensor_lite/frameworks:sensor_lite" + ], + "test": [ + "//base/sensors/sensor_lite/interfaces/kits/native:unittest" + ] + } + } +} \ No newline at end of file diff --git a/frameworks/src/BUILD.gn b/frameworks/src/BUILD.gn old mode 100755 new mode 100644 index 1afb930..7864ddb --- a/frameworks/src/BUILD.gn +++ b/frameworks/src/BUILD.gn @@ -42,5 +42,5 @@ shared_library("sensor_client") { "//base/sensors/sensor_lite/services/include", ] - deps = [ "//foundation/distributedschedule/samgr_lite/samgr:samgr" ] + deps = [ "samgr_lite:samgr" ] } diff --git a/services/BUILD.gn b/services/BUILD.gn old mode 100755 new mode 100644 index a3f9f6b..ae89e23 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -37,6 +37,6 @@ executable("sensor_service") { deps = [ "//drivers/peripheral/sensor/hal:hdi_sensor", - "//foundation/distributedschedule/samgr_lite/samgr:samgr", + "samgr_lite:samgr", ] } -- Gitee From 3dcf3bded1353fbd6a665ed9f26f136fdc8c4163 Mon Sep 17 00:00:00 2001 From: hellohyh001 Date: Wed, 12 Jan 2022 22:07:59 +0800 Subject: [PATCH 2/3] Signed-off-by:hellohyh001 Signed-off-by: hellohyh001 --- frameworks/src/BUILD.gn | 2 +- services/BUILD.gn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/src/BUILD.gn b/frameworks/src/BUILD.gn index 7864ddb..1afb930 100644 --- a/frameworks/src/BUILD.gn +++ b/frameworks/src/BUILD.gn @@ -42,5 +42,5 @@ shared_library("sensor_client") { "//base/sensors/sensor_lite/services/include", ] - deps = [ "samgr_lite:samgr" ] + deps = [ "//foundation/distributedschedule/samgr_lite/samgr:samgr" ] } diff --git a/services/BUILD.gn b/services/BUILD.gn index ae89e23..a3f9f6b 100644 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -37,6 +37,6 @@ executable("sensor_service") { deps = [ "//drivers/peripheral/sensor/hal:hdi_sensor", - "samgr_lite:samgr", + "//foundation/distributedschedule/samgr_lite/samgr:samgr", ] } -- Gitee From 660c6c2f7d27483ebb60a3bacd9fb50bb5d3039d Mon Sep 17 00:00:00 2001 From: SUE Date: Thu, 13 Jan 2022 06:28:46 +0000 Subject: [PATCH 3/3] Signed-off-by:hellohyh001 --- bundle.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle.json b/bundle.json index f50a1a7..545f7ac 100644 --- a/bundle.json +++ b/bundle.json @@ -1,12 +1,12 @@ { - "name": "@openharmony/sensor_lite", + "name": "@ohos/sensor_lite", "description": "Obtaining sensor data", "version": "3.1", "license": "Apache License 2.0", "component": { "name": "sensor_lite", "subsystem": "sensors", - "syscap": [], + "syscap": ["SystemCapability.Sensors.Sensor_lite"], "features": [], "adapted_system_type": [ "small" ], "rom": "92KB", -- Gitee