Allow disabling iOS development in Settings
Summary: Currently Android development can be disabled in Settings, but iOS development not. Because of this Doctor always shows warnings to Android-only developers who has no iOS SDK installed. This change makes it possible to disable "iOS development" option in the same way as we already had for Android. Additionally I changed Doctor warning to show more specific message if only iOS or only Android checks are failed with suggestion to disable the failing platform if it is not required. Reviewed By: jknoxville Differential Revision: D19538070 fbshipit-source-id: 234d2c6cf21083f9d6aebd63418aed7f9a78e922
This commit is contained in:
committed by
Facebook Github Bot
parent
b625efee3d
commit
aab004aa15
@@ -255,6 +255,9 @@ export default (store: Store, logger: Logger) => {
|
||||
if (process.platform !== 'darwin') {
|
||||
return;
|
||||
}
|
||||
if (!store.getState().settingsState.enableIOS) {
|
||||
return;
|
||||
}
|
||||
isXcodeDetected()
|
||||
.then(isDetected => {
|
||||
store.dispatch(setXcodeDetected(isDetected));
|
||||
|
||||
Reference in New Issue
Block a user