diff --git a/modulecheck/module.json b/modulecheck/module.json index db97db4b88304f6aaeeb390f2a387479e010f366..e210f0aa64f1b91ca310721516b3ed96833584fd 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",