From c582e484beab7aa65bf2b48511dcb5c62d6310ec Mon Sep 17 00:00:00 2001 From: "taiyi.pei" Date: Wed, 10 Aug 2022 15:30:19 +0800 Subject: [PATCH 1/2] add syscap and format to unix Signed-off-by: taiyi.pei --- bundle.json | 88 ++++++++++++++++++++++++++--------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/bundle.json b/bundle.json index 1f66266..f05efa3 100644 --- a/bundle.json +++ b/bundle.json @@ -1,44 +1,44 @@ -{ - "name": "@ohos/syscap_codec", - "description": "SystemCapability encode/decode.", - "version": "3.1", - "license": "Apache License 2.0", - "pubiishAs": "code-segment", - "segment": { - "destPath": "developtools/syscap_codec" - }, - "dirs": {}, - "scripts": {}, - "component": { - "name": "syscap_codec", - "subsystem": "developtools", - "syscap": [], - "feature": [], - "adapted_system_type": [ "small", "standard" ], - "deps": { - "components": [ - "napi", - "hiviewdfx_hilog_native" - ], - "third_party": [ - "bounds_checking_function", - "cjson" - ] - }, - "build": { - "sub_component": [ - "//developtools/syscap_codec:syscap_codec" - ], - "inner_kits": [ - { - "header": { - "header_base": "//developtools/syscap_codec/interfaces/inner_api", - "header_files": [ "syscap_interface.h" ] - }, - "name": "//developtools/syscap_codec:syscap_interface_shared" - } - ], - "test": [ "//developtools/syscap_codec/test/unittest/common:unittest" ] - } - } -} +{ + "name": "@ohos/syscap_codec", + "description": "System capability encode and decode.", + "version": "3.2", + "license": "Apache License 2.0", + "pubiishAs": "code-segment", + "segment": { + "destPath": "developtools/syscap_codec" + }, + "dirs": {}, + "scripts": {}, + "component": { + "name": "syscap_codec", + "subsystem": "developtools", + "syscap": [ "SystemCapability.Developtools.Syscap" ], + "feature": [], + "adapted_system_type": [ "small", "standard" ], + "deps": { + "components": [ + "napi", + "hiviewdfx_hilog_native" + ], + "third_party": [ + "bounds_checking_function", + "cjson" + ] + }, + "build": { + "sub_component": [ + "//developtools/syscap_codec:syscap_codec" + ], + "inner_kits": [ + { + "header": { + "header_base": "//developtools/syscap_codec/interfaces/inner_api", + "header_files": [ "syscap_interface.h" ] + }, + "name": "//developtools/syscap_codec:syscap_interface_shared" + } + ], + "test": [ "//developtools/syscap_codec/test/unittest/common:unittest" ] + } + } +} -- Gitee From e8cc69116f44f150661ab5c44f236b58ddf4511b Mon Sep 17 00:00:00 2001 From: "taiyi.pei" Date: Wed, 10 Aug 2022 15:39:10 +0800 Subject: [PATCH 2/2] add in syscap int define Signed-off-by: taiyi.pei --- include/syscap_define.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/syscap_define.h b/include/syscap_define.h index d74ef83..e81c20c 100644 --- a/include/syscap_define.h +++ b/include/syscap_define.h @@ -193,6 +193,7 @@ typedef enum SystemCapabilityNum { LOCATION_LOCATION_GEOFENCE, LOCATION_LOCATION_GEOCODER, LOCATION_LOCATION_LITE, + DEVELOPTOOLS_SYSCAP, // Add here SYSCAP_NUM_MAX = 960 } SyscapNum; @@ -359,6 +360,7 @@ const static SyscapWithNum g_arraySyscap[] = { {"SystemCapability.UserIAM.UserAuth.PinAuth", USERIAM_USERAUTH_PINAUTH}, {"SystemCapability.UserIAM.UserIdm", USERIAM_USERIDM}, {"SystemCapability.Security.CertificateManager", SECURITY_CERTIFICATE_MANAGER}, + {"SystemCapability.Developtools.Syscap", DEVELOPTOOLS_SYSCAP}, }; #endif // _SYSCAP_DEFINE_H -- Gitee