!247 增加commoneventInfo解析模块

Merge pull request !247 from wangtiantian/bug_event_m
This commit is contained in:
openharmony_ci 2021-12-31 07:13:42 +00:00 committed by Gitee
commit d6cf16a4a9

View File

@ -2044,6 +2044,17 @@ bool TransformToInfo(ProfileReader::ConfigJson &configJson, InnerBundleInfo &inn
std::string shortcutkey = configJson.app.bundleName + configJson.module.package + info.shortcutId;
innerBundleInfo.InsertShortcutInfos(shortcutkey, shortcutInfo);
}
for (const auto &info : configJson.module.commonEvents) {
CommonEventInfo commonEvent;
commonEvent.name = info.name;
commonEvent.bundleName = configJson.app.bundleName;
commonEvent.permission = info.permission;
commonEvent.data = info.data;
commonEvent.type = info.type;
commonEvent.events = info.events;
std::string commonEventKey = configJson.app.bundleName + configJson.module.package + info.name;
innerBundleInfo.InsertCommonEvents(commonEventKey, commonEvent);
}
bool find = false;
for (const auto &ability : configJson.module.abilities) {
AbilityInfo abilityInfo;