(p: Plugin, platform: string, elementName: string)
| 214 | * For a given plugin, return all the plugin.xml elements with elementName, checking root and specified platform |
| 215 | */ |
| 216 | export function getAllElements(p: Plugin, platform: string, elementName: string): any { |
| 217 | let modules: string[] = []; |
| 218 | if (p.xml[elementName]) { |
| 219 | modules = modules.concat(p.xml[elementName]); |
| 220 | } |
| 221 | const platformModules = getPluginPlatform(p, platform); |
| 222 | if (platformModules?.[elementName]) { |
| 223 | modules = modules.concat(platformModules[elementName]); |
| 224 | } |
| 225 | return modules; |
| 226 | } |
no test coverage detected