Skip to content

Commit

Permalink
adjust Scenario: opt not to modify the Android project
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Edney committed Jan 23, 2024
1 parent d75d31c commit 3f5d30c
Showing 1 changed file with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,36 +59,36 @@ export default async function run (projectRoot: string, urls: OnPremiseUrls): Pr
}, { onCancel })
}
}
}

const { bugsnagCliNpmTasks } = await prompts({
type: 'confirm',
name: 'bugsnagCliNpmTasks',
message: 'Do you want to add an NPM task to your package.json that you can run to upload Android and iOS source maps?',
initial: true
}, { onCancel })
const { bugsnagCliNpmTasks } = await prompts({
type: 'confirm',
name: 'bugsnagCliNpmTasks',
message: 'Do you want to add an NPM task to your package.json that you can run to upload Android and iOS source maps?',
initial: true
}, { onCancel })

if (bugsnagCliNpmTasks) {
await writeToPackageJson(join(projectRoot, 'package.json'), urls[UrlType.UPLOAD], urls[UrlType.BUILD])
if (bugsnagCliNpmTasks) {
await writeToPackageJson(join(projectRoot, 'package.json'), urls[UrlType.UPLOAD], urls[UrlType.BUILD])

await prompts({
type: 'text',
name: 'bugsnagCliInstructions',
message: BUGSNAG_CLI_INSTRUCTIONS,
initial: 'Hit enter to continue …'
}, { onCancel })
}
await prompts({
type: 'text',
name: 'bugsnagCliInstructions',
message: BUGSNAG_CLI_INSTRUCTIONS,
initial: 'Hit enter to continue …'
}, { onCancel })
}

const { iosIntegration } = await prompts({
type: 'confirm',
name: 'iosIntegration',
message: 'Do you want to automatically upload JavaScript source maps as part of the Xcode build?',
initial: true
}, { onCancel })
const { iosIntegration } = await prompts({
type: 'confirm',
name: 'iosIntegration',
message: 'Do you want to automatically upload JavaScript source maps as part of the Xcode build?',
initial: true
}, { onCancel })

if (iosIntegration) {
logger.info('Modifying the Xcode project')
await updateXcodeProject(projectRoot, urls[UrlType.UPLOAD], logger)
if (iosIntegration) {
logger.info('Modifying the Xcode project')
await updateXcodeProject(projectRoot, urls[UrlType.UPLOAD], logger)
}
}

await prompts({
Expand Down

0 comments on commit 3f5d30c

Please sign in to comment.