Skip to content

Commit

Permalink
fix: update Xcode version range to >= 10; change wording of supp… (#856)
Browse files Browse the repository at this point in the history
* Update Xcode version and change wording of supported

* set supported range to >= 10

* adjust message
  • Loading branch information
Lucas Bento authored and thymikee committed Nov 19, 2019
1 parent 15dc5e1 commit 5adc24c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions packages/cli/src/commands/doctor/doctor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import chalk from 'chalk';
import {logger} from '@react-native-community/cli-tools';
import semver from 'semver';
import {getHealthchecks, HEALTHCHECK_TYPES} from './healthchecks';
import {getLoader} from '../../tools/loader';
import printFixOptions, {KEYS} from './printFixOptions';
Expand Down Expand Up @@ -36,22 +35,17 @@ const printIssue = ({
: chalk.yellow('●')
: chalk.green('✓');

const descriptionToShow = description ? `- ${description}` : '';
const descriptionToShow = description ? ` - ${description}` : '';

logger.log(` ${symbol} ${label}${descriptionToShow}`);

if (needsToBeFixed && versionRange) {
const versionToShow = version && version !== 'Not Found' ? version : 'N/A';
const cleanedVersionRange = semver.valid(semver.coerce(versionRange)!);

if (cleanedVersionRange) {
logMessage(`- Version found: ${chalk.red(versionToShow)}`);
logMessage(
`- Minimum version required: ${chalk.green(cleanedVersionRange)}`,
);
logMessage(`- Version found: ${chalk.red(versionToShow)}`);
logMessage(`- Version supported: ${chalk.green(versionRange)}`);

return;
}
return;
}
};

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/doctor/versionRanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export default {
ANDROID_SDK: '>= 26.x',
ANDROID_NDK: '>= 19.x',
// iOS
XCODE: '10.x',
XCODE: '>= 10.x',
};

0 comments on commit 5adc24c

Please sign in to comment.