flipper-doctor
Advanced tools
Comparing version 0.252.0 to 0.253.0
@@ -267,2 +267,37 @@ "use strict"; | ||
{ | ||
key: 'ios.has-simulators', | ||
label: 'Simulators are available', | ||
isRequired: true, | ||
run: async (_e, settings) => { | ||
const result = await tryExecuteCommand(`${settings?.idbPath ?? 'idb'} list-targets --json`); | ||
if (result.fail) { | ||
return { | ||
hasProblem: true, | ||
message: [ | ||
'ios.has-simulators--idb-failed', | ||
{ message: result.message }, | ||
], | ||
}; | ||
} | ||
const devices = result.stdout | ||
.trim() | ||
.split('\n') | ||
.map((x) => JSON.parse(x)) | ||
.filter((x) => x.type === 'simulator'); | ||
if (devices.length === 0) { | ||
return { | ||
hasProblem: true, | ||
message: ['ios.has-simulators--no-devices'], | ||
}; | ||
} | ||
return { | ||
hasProblem: false, | ||
message: [ | ||
'ios.has-simulators--ok', | ||
{ count: devices.length }, | ||
], | ||
}; | ||
}, | ||
}, | ||
{ | ||
key: 'ios.xctrace', | ||
@@ -269,0 +304,0 @@ label: 'xctrace exists', |
{ | ||
"name": "flipper-doctor", | ||
"version": "0.252.0", | ||
"version": "0.253.0", | ||
"description": "Utility for checking for issues with a flipper installation", | ||
@@ -30,5 +30,5 @@ "main": "lib/index.js", | ||
"fb-watchman": "^2.0.2", | ||
"flipper-common": "0.252.0", | ||
"flipper-common": "0.253.0", | ||
"fs-extra": "^11.1.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39486
565
Updatedflipper-common@0.253.0