Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
await spin('Generating Android Runner project',
generateAndroidRunnerProject(
Platform.currentPlatformVersionPath,
pathToAndroidRunner,
mainMiniAppName,
false))
}
break
}
case 'ios': {
await generateContainer(platform, { napDescriptor, dependenciesObjs, miniAppsPaths })
const pathToIosRunner = path.join(commandCwd, platform)
if (!fs.existsSync(pathToIosRunner)) {
shell.mkdir('-p', pathToIosRunner)
await spin('Generating iOS Runner project',
generateIosRunnerProject(
Platform.currentPlatformVersionPath,
pathToIosRunner,
path.join(Platform.rootDirectory, 'containergen'),
mainMiniAppName,
false))
}
break
}
default: {
log.warn(`Skipping unsupported platform type : ${platform}`)
}
}
log.info(`Generation complete`)
}
} catch (e) {
log.error(`${e.message}`)