add appIntent fix

Signed-off-by: zhangzezhong <zhangzezhong8@huawei-partners.com>
This commit is contained in:
zhangzezhong
2025-11-28 15:07:31 +08:00
parent bdae6729d6
commit 0feb82b139
3 changed files with 13 additions and 11 deletions
@@ -2,8 +2,8 @@
"app": {
"bundleName": "com.ohos.amsdialog",
"vendor": "example",
"versionCode": 1000015,
"versionName": "1.6.5",
"versionCode": 1000016,
"versionName": "1.6.6",
"icon": "$media:app_icon",
"label": "$string:app_name",
"distributedNotificationEnabled": true,
@@ -17,8 +17,8 @@
"app": {
"bundleName": "com.ohos.amsdialog",
"vendor": "example",
"versionCode": 1000015,
"versionName": "1.6.5",
"versionCode": 1000016,
"versionName": "1.6.6",
"icon": "$media:app_icon",
"label": "$string:app_name",
"distributedNotificationEnabled": true,
@@ -68,13 +68,15 @@ export struct IntentContent {
insightIntentDriver.getAllInsightIntentInfo(insightIntentDriver.GetInsightIntentFlag.GET_FULL_INSIGHT_INTENT)
.then((data) => {
this.listMaterial = data as IntentInfo[];
this.intermediateGroupMaterial = this.listMaterial.reduce((acc, item) => {
const bundleName: string = item.bundleName;
if (!acc[bundleName]) {
acc[bundleName] = [];
}
acc[bundleName].push(item);
return acc;
this.intermediateGroupMaterial = this.listMaterial
.filter(item => item.developType != insightIntentDriver.DevelopType.CONFIGURATION)
.reduce((acc, item) => {
const bundleName: string = item.bundleName;
if (!acc[bundleName]) {
acc[bundleName] = [];
}
acc[bundleName].push(item);
return acc;
}, {} as Record<string, IntentInfo[]>)
const bundleNames = Object.keys(this.intermediateGroupMaterial);
const promises = bundleNames.map(async (bundleName) => {