diff --git a/modulecheck/appStartup.json b/modulecheck/appStartup.json index 92d5c7b31f86d9d7e4071aa5c0bab6c6615dc979..791c52df125e207df06988472184833c1cc0b6ad 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 7d2b884982c404c8e71082804c8a20948f9bba01..de87c06d0f5b57b1377aec9c3e3d0a5ede26f16e 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" + } + } + } } } }