From fbb9f805d4d474afacef2bef56cfffa28e6bd702 Mon Sep 17 00:00:00 2001 From: John Knox Date: Thu, 7 May 2020 05:29:03 -0700 Subject: [PATCH] Disable crash reporter plugin on physical iOS devices Summary: It doesn't currently work on them, so removing to avoid confusion. Reviewed By: priteshrnandgaonkar Differential Revision: D21448681 fbshipit-source-id: 6ef46f8551921c1c5bdba17fd65f762292f1dd0e --- desktop/plugins/crash_reporter/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/plugins/crash_reporter/index.js b/desktop/plugins/crash_reporter/index.js index 280dbf485..6130e67a5 100644 --- a/desktop/plugins/crash_reporter/index.js +++ b/desktop/plugins/crash_reporter/index.js @@ -531,7 +531,10 @@ export default class CrashReporterPlugin extends FlipperDevicePlugin< static defaultPersistedState = {crashes: []}; static supportsDevice(device: Device) { - return device.os === 'iOS' || device.os === 'Android'; + return ( + (device.os === 'iOS' && device.deviceType !== 'physical') || + device.os === 'Android' + ); } static notificationID: number = 0;