From 85da44eb31fb4c1462e841de483264c922d075d0 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Thu, 6 Mar 2025 15:15:26 +0800 Subject: [PATCH] add extractNativeLibs Signed-off-by: wangtiantian --- modulecheck/module.json | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/modulecheck/module.json b/modulecheck/module.json index db97db4b..e210f0aa 100644 --- a/modulecheck/module.json +++ b/modulecheck/module.json @@ -16,6 +16,22 @@ "description": "Indicates the configuration of a .hap file. The module configuration is valid only for the current .hap file.", "type": "object", "allOf": [ + { + "if": { + "properties": { + "compressNativeLibs": { + "const": true + } + } + }, + "then": { + "properties": { + "extractNativeLibs": { + "const": true + } + } + } + }, { "if": { "properties": { @@ -47,7 +63,8 @@ "targetPriority", "generateBuildHash", "routerMap", - "appStartup" + "appStartup", + "extractNativeLibs" ] }, "required": [ @@ -141,7 +158,8 @@ "routerMap", "appEnvironments", "appStartup", - "hnpPackages" + "hnpPackages", + "extractNativeLibs" ] }, "required": [ @@ -190,7 +208,8 @@ "isolationMode", "proxyData", "routerMap", - "appEnvironments" + "appEnvironments", + "extractNativeLibs" ] }, "required": [ @@ -1466,6 +1485,11 @@ "type": "boolean", "default": false }, + "extractNativeLibs": { + "description": "Specifies whether the libs libraries of the .hap file are extracted. If this attribute is set to true, the libs libraries will be directly loaded during the installation of the .hap file.", + "type": "boolean", + "default": true + }, "atomicService": { "description": "Indicates the module config in atomic service.", "type": "object", -- Gitee