Function
getIncludedPluginPackages
(config: Config, platform: string)
Source from the content-addressed store, hash-verified
| 43 | } |
| 44 | |
| 45 | export function getIncludedPluginPackages(config: Config, platform: string): readonly string[] | undefined { |
| 46 | const { extConfig } = config.app; |
| 47 | |
| 48 | switch (platform) { |
| 49 | case 'android': |
| 50 | return extConfig.android?.includePlugins ?? extConfig.includePlugins; |
| 51 | case 'ios': |
| 52 | return extConfig.ios?.includePlugins ?? extConfig.includePlugins; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | export async function getPlugins(config: Config, platform: string): Promise<Plugin[]> { |
| 57 | const possiblePlugins = getIncludedPluginPackages(config, platform) ?? getDependencies(config); |
Tested by
no test coverage detected