MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / promptForBundleID

Function promptForBundleID

packages/client/src/app/AppShell.tsx:2565–2589  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2563 }
2564
2565 function promptForBundleID() {
2566 if (!selectedSimulator) {
2567 return;
2568 }
2569 const nextValue = window.prompt(
2570 `Launch bundle on ${selectedSimulator.name}`,
2571 bundleIDValueRef.current,
2572 );
2573 if (nextValue == null) {
2574 return;
2575 }
2576 const trimmed = nextValue.trim();
2577 if (!trimmed) {
2578 return;
2579 }
2580 bundleIDValueRef.current = trimmed;
2581 writePersistedUiState((current) => ({
2582 ...current,
2583 bundleIDValue: trimmed,
2584 }));
2585 setMenuOpen(false);
2586 void runAction(() =>
2587 launchSimulatorBundle(selectedSimulator.udid, { bundleId: trimmed }),
2588 );
2589 }
2590
2591 function sendHardwareButtonEvent(
2592 button: string,

Callers

nothing calls this directly

Calls 3

writePersistedUiStateFunction · 0.90
launchSimulatorBundleFunction · 0.90
runActionFunction · 0.85

Tested by

no test coverage detected