@react-native-community/cli-platform-ios
Advanced tools
Comparing version 2.9.0 to 2.10.0
@@ -135,5 +135,20 @@ "use strict"; | ||
} | ||
/** | ||
* If provided simulator does not exist, try simulators in following order | ||
* - iPhone X | ||
* - iPhone 8 | ||
*/ | ||
const selectedSimulator = (0, _findMatchingSimulator.default)(simulators, args.simulator); | ||
/** | ||
* Flow does not properly infer the type of the second argument to reduce(). | ||
* See https://github.com/facebook/flow/issues/5182. | ||
* TODO [flow-bin@>=0.107.0]: Remove workaround. | ||
*/ | ||
const fallbackSimulators = ['iPhone X', 'iPhone 8']; | ||
const selectedSimulator = fallbackSimulators.reduce((simulator, fallback) => { | ||
return simulator || (0, _findMatchingSimulator.default)(simulators, fallback); | ||
}, (0, _findMatchingSimulator.default)(simulators, args.simulator)); | ||
if (!selectedSimulator) { | ||
@@ -391,3 +406,3 @@ throw new (_cliTools().CLIError)(`Could not find "${args.simulator}" simulator`); | ||
description: 'Explicitly set simulator to use. Optionally include iOS version between' + 'parenthesis at the end to match an exact version: "iPhone 6 (10.0)"', | ||
default: 'iPhone X' | ||
default: 'iPhone 11' | ||
}, { | ||
@@ -394,0 +409,0 @@ name: '--configuration [string]', |
{ | ||
"name": "@react-native-community/cli-platform-ios", | ||
"version": "2.9.0", | ||
"version": "2.10.0", | ||
"license": "MIT", | ||
@@ -15,3 +15,3 @@ "main": "build/index.js", | ||
], | ||
"gitHead": "e7784f51d834471fde9e15dc1fa72b3b72e384e1" | ||
"gitHead": "ca9947dd066755d28c1e6d4c16a8c9338a661eb7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101317
2539