Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dependenciesObjs = _.map(dependencies, d => Dependency.fromString(d))
miniAppsPaths = _.map(miniapps, m => DependencyPath.fromString(m))
}
// ==============================================
// COMMAND LOGIC
// ==============================================
for (const platform of platforms) {
switch (platform) {
case 'android': {
await generateContainer(platform, { napDescriptor, dependenciesObjs, miniAppsPaths })
const pathToAndroidRunner = path.join(commandCwd, platform)
if (!fs.existsSync(pathToAndroidRunner)) {
shell.mkdir('-p', pathToAndroidRunner)
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,