MCPcopy Index your code
hub / github.com/ionic-team/capacitor / writePluginJSON

Function writePluginJSON

cli/src/util/iosplugin.ts:58–63  ·  view source on GitHub ↗
(config: Config, classList: string[])

Source from the content-addressed store, hash-verified

56}
57
58export async function writePluginJSON(config: Config, classList: string[]): Promise<void> {
59 const capJSONFile = resolve(config.ios.nativeTargetDirAbs, 'capacitor.config.json');
60 const capJSON = readJSONSync(capJSONFile);
61 capJSON['packageClassList'] = classList;
62 writeJSONSync(capJSONFile, capJSON, { spaces: '\t' });
63}
64
65export async function generateIOSPackageJSON(config: Config, plugins: Plugin[]): Promise<void> {
66 const fileList = await getPluginFiles(plugins);

Callers 1

generateIOSPackageJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected