From ad3dc58b32ae4b7b5e8fe501d0083d286e36f189 Mon Sep 17 00:00:00 2001 From: zhangyuhang72 Date: Thu, 15 May 2025 11:12:47 +0800 Subject: [PATCH] =?UTF-8?q?appStartup.json=E5=A2=9E=E5=8A=A0matchRules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangyuhang72 Change-Id: I8a985a3731debf7496e2d8102dd7a1d05bb7cacc --- modulecheck/appStartup.json | 89 +++++++++++++++++++++++++++++++- modulecheck/appStartupInner.json | 89 +++++++++++++++++++++++++++++++- 2 files changed, 174 insertions(+), 4 deletions(-) diff --git a/modulecheck/appStartup.json b/modulecheck/appStartup.json index 92d5c7b3..791c52df 100644 --- a/modulecheck/appStartup.json +++ b/modulecheck/appStartup.json @@ -26,7 +26,8 @@ "dependencies", "excludeFromAutoStart", "runOnThread", - "waitOnMainThread" + "waitOnMainThread", + "matchRules" ] }, "required": [ @@ -72,6 +73,52 @@ "description": "Indicates whether the startup task block the main thread.", "type": "boolean", "default": true + }, + "matchRules": { + "description": "Incidcates match rules of the startup task.", + "type": "object", + "propertyNames": { + "enum": [ + "uris", + "insightIntents", + "actions", + "customization" + ] + }, + "properties": { + "uris": { + "description": "Indicates uri match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "insightIntents": { + "description": "Indicates insightIntent match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "actions": { + "description": "Indicates action match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "customization": { + "description": "Indicates custom match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + } + } } } } @@ -92,7 +139,8 @@ "srcEntry", "dependencies", "excludeFromAutoStart", - "runOnThread" + "runOnThread", + "matchRules" ] }, "required": [ @@ -132,6 +180,43 @@ "enum": [ "taskPool" ] + }, + "matchRules": { + "description": "Incidcates match rules of the startup task.", + "type": "object", + "propertyNames": { + "enum": [ + "uris", + "insightIntents", + "actions" + ] + }, + "properties": { + "uris": { + "description": "Indicates uri match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "insightIntents": { + "description": "Indicates insightIntent match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "actions": { + "description": "Indicates action match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + } + } } } } diff --git a/modulecheck/appStartupInner.json b/modulecheck/appStartupInner.json index 7d2b8849..de87c06d 100644 --- a/modulecheck/appStartupInner.json +++ b/modulecheck/appStartupInner.json @@ -22,7 +22,8 @@ "dependencies", "excludeFromAutoStart", "runOnThread", - "waitOnMainThread" + "waitOnMainThread", + "matchRules" ] }, "required": [ @@ -71,6 +72,52 @@ "description": "Indicates whether the har/hsp startup task block the main thread.", "type": "boolean", "default": true + }, + "matchRules": { + "description": "Incidcates match rules of the startup task.", + "type": "object", + "propertyNames": { + "enum": [ + "uris", + "insightIntents", + "actions", + "customization" + ] + }, + "properties": { + "uris": { + "description": "Indicates uri match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "insightIntents": { + "description": "Indicates insightIntent match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "actions": { + "description": "Indicates action match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "customization": { + "description": "Indicates custom match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + } + } } } } @@ -86,7 +133,8 @@ "srcEntry", "dependencies", "excludeFromAutoStart", - "runOnThread" + "runOnThread", + "matchRules" ] }, "required": [ @@ -129,6 +177,43 @@ "enum": [ "taskPool" ] + }, + "matchRules": { + "description": "Incidcates match rules of the startup task.", + "type": "object", + "propertyNames": { + "enum": [ + "uris", + "insightIntents", + "actions" + ] + }, + "properties": { + "uris": { + "description": "Indicates uri match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "insightIntents": { + "description": "Indicates insightIntent match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + }, + "actions": { + "description": "Indicates action match rule of the startup task.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + } + } + } } } } -- Gitee