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
This commit is contained in:
John Knox
2020-05-07 05:29:03 -07:00
committed by Facebook GitHub Bot
parent 9e8592d050
commit fbb9f805d4

View File

@@ -531,7 +531,10 @@ export default class CrashReporterPlugin extends FlipperDevicePlugin<
static defaultPersistedState = {crashes: []}; static defaultPersistedState = {crashes: []};
static supportsDevice(device: Device) { 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; static notificationID: number = 0;