Skip to content

Commit 07e4342

Browse files
committed
refactor(apple): keep plist timeout with its tool executor
1 parent a19acaf commit 07e4342

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎packages/platform-apple/src/core/config.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export const IOS_DEVICECTL_TIMEOUT_MS = 20_000;
99
export const IOS_DEVICECTL_MIN_TIMEOUT_SECONDS = 5;
1010

1111
export const IOS_DEVICE_INSTALL_TIMEOUT_MS = 120_000;
12-
export const APPLE_PLIST_TIMEOUT_MS = 15_000;
1312
export const IOS_APP_UNINSTALL_TIMEOUT_MS = 20_000;
1413

1514
export const IOS_SIMULATOR_SHOW_TIMEOUT_MS = 10_000;

‎packages/platform-apple/src/core/plist.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { APPLE_PLIST_TIMEOUT_MS } from './config.ts';
21
import { readHostTextFile } from '@agent-device/host-kit/host-file';
32
import { parseXmlDocumentSync } from '@agent-device/xml';
4-
import { readApplePlistJson, runAppleToolCommand } from './tool-provider.ts';
3+
import {
4+
APPLE_PLIST_TIMEOUT_MS,
5+
readApplePlistJson,
6+
runAppleToolCommand,
7+
} from './tool-provider.ts';
58
import { visitXmlPlistEntries } from './plist-xml.ts';
69

710
export async function readInfoPlistString(

‎packages/platform-apple/src/core/tool-provider.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { APPLE_PLIST_TIMEOUT_MS } from './config.ts';
21
import {
32
coerceExecResult,
43
runCmd,
@@ -62,6 +61,8 @@ export type AppleToolProvider = {
6261
whichCommand: AppleToolAvailabilityChecker;
6362
};
6463

64+
export const APPLE_PLIST_TIMEOUT_MS = 15_000;
65+
6566
const localAppleToolProvider: AppleToolProvider = {
6667
runCommand: runCmd,
6768
simctl: {

0 commit comments

Comments
 (0)