(config: Config)
| 354 | } |
| 355 | |
| 356 | async function getRelativeCapacitoriOSPath(config: Config) { |
| 357 | const capacitoriOSPath = resolveNode(config.app.rootDir, '@capacitor/ios', 'package.json'); |
| 358 | |
| 359 | if (!capacitoriOSPath) { |
| 360 | fatal( |
| 361 | `Unable to find ${c.strong('node_modules/@capacitor/ios')}.\n` + |
| 362 | `Are you sure ${c.strong('@capacitor/ios')} is installed?`, |
| 363 | ); |
| 364 | } |
| 365 | |
| 366 | return convertToUnixPath(relative(config.ios.nativeProjectDirAbs, await realpath(dirname(capacitoriOSPath)))); |
| 367 | } |
| 368 | |
| 369 | async function generatePodFile(config: Config, plugins: Plugin[]): Promise<string> { |
| 370 | const relativeCapacitoriOSPath = await getRelativeCapacitoriOSPath(config); |
no test coverage detected