mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2024-11-27 01:11:15 +00:00
!247 增加commoneventInfo解析模块
Merge pull request !247 from wangtiantian/bug_event_m
This commit is contained in:
commit
d6cf16a4a9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user