From ed03f1b107f11890201db042749ceedaccbffb15 Mon Sep 17 00:00:00 2001 From: Lawrence Lomax Date: Tue, 1 Feb 2022 04:55:51 -0800 Subject: [PATCH] Use idb to record devices Summary: `idb` has supported video recording on devices for quite some time now. We even have the implementation in `iOSDevice`, but it's currently unused. As a result, we just need to remove the check within `iOSDevice` that the target is an "emulator" and it will use the `idb` implementation. Removing this check means that the button is now selectable within the UI. Reviewed By: passy Differential Revision: D33913383 fbshipit-source-id: b3d6b4c480c79b54f0d2c206c68092ab62bf71ed --- desktop/flipper-server-core/src/devices/ios/IOSDevice.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/flipper-server-core/src/devices/ios/IOSDevice.tsx b/desktop/flipper-server-core/src/devices/ios/IOSDevice.tsx index 3a238ab87..10badd573 100644 --- a/desktop/flipper-server-core/src/devices/ios/IOSDevice.tsx +++ b/desktop/flipper-server-core/src/devices/ios/IOSDevice.tsx @@ -77,7 +77,7 @@ export default class IOSDevice extends ServerDevice { } async screenCaptureAvailable() { - return this.info.deviceType === 'emulator' && this.connected; + return this.connected; } async startScreenCapture(destination: string) {