mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 12:43:16 -04:00
add appIntent fix
Signed-off-by: zhangzezhong <zhangzezhong8@huawei-partners.com>
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user