(device: DeviceInfo, bundleId: string)
| 197 | } |
| 198 | |
| 199 | async function clearIosSimulatorRuntimeHints(device: DeviceInfo, bundleId: string): Promise<void> { |
| 200 | await runXcrun( |
| 201 | buildSimctlArgsForDevice(device, [ |
| 202 | 'spawn', |
| 203 | device.id, |
| 204 | 'defaults', |
| 205 | 'delete', |
| 206 | bundleId, |
| 207 | IOS_JS_LOCATION_KEY, |
| 208 | ]), |
| 209 | { allowFailure: true }, |
| 210 | ); |
| 211 | await runXcrun( |
| 212 | buildSimctlArgsForDevice(device, [ |
| 213 | 'spawn', |
| 214 | device.id, |
| 215 | 'defaults', |
| 216 | 'delete', |
| 217 | bundleId, |
| 218 | IOS_PACKAGER_SCHEME_KEY, |
| 219 | ]), |
| 220 | { allowFailure: true }, |
| 221 | ); |
| 222 | } |
| 223 | |
| 224 | function normalizeAndroidPrefsXml(xml: string): string { |
| 225 | const trimmed = xml.trim(); |
no test coverage detected