Home
last modified time | relevance | path

Searched refs:osType (Results 1 – 17 of 17) sorted by relevance

/expo/packages/@expo/cli/src/start/platforms/ios/
H A DgetBestSimulator.ts27 osType,
34 (!osType || (osType && simulatorOpenedByApp.osType === osType))
40 debug(`No booted simulator matching requirements (osType: ${osType}).`);
51 export async function getBestUnbootedSimulatorAsync({ osType }: DeviceContext = {}): Promise<
57 if (defaultId && !osType) {
61 const simulators = await getSelectableSimulatorsAsync({ osType });
67 `No ${osType || 'iOS'} devices available in Simulator.app`
74 if (defaultSimulator?.osType === osType) {
90 return simulators.filter((device) => device.isAvailable && device.osType === osType);
100 const simulatorOpenedByApp = await getBestBootedSimulatorAsync({ osType });
[all …]
H A DpromptAppleDevice.ts15 osType?: Device['osType']
17 const defaultId = await getBestSimulatorAsync({ osType });
31 osType?: Device['osType']
33 devices = await sortDefaultDeviceToBeginningAsync(devices, osType);
H A DAppleDeviceManager.ts33 { udid, osType }: Partial<Pick<SimControl.Device, 'udid' | 'osType'>> = {},
39 const simulatorOpenedByApp = await getBestBootedSimulatorAsync({ osType });
45 const bestUdid = await getBestUnbootedSimulatorAsync({ osType });
63 return await ensureSimulatorOpenAsync({ udid, osType }, false);
84 device = await promptAppleDeviceAsync(devices, device?.osType);
107 return ensureSimulatorOpenAsync({ osType: this.device.osType, udid: this.device.udid });
H A Dsimctl.ts33 osType: OSType;
248 const [osType, ...osVersionComponents] = runtimeSuffix.split('-'); constant
256 device.osType = osType as OSType;
/expo/packages/@expo/cli/src/run/ios/options/
H A DresolveDevice.ts19 async function getDevicesAsync({ osType }: { osType?: OSType } = {}): Promise<AnyDevice[]> {
24 osType
31 return osType ? filterDevicesForOsType(devices, osType) : devices;
35 function filterDevicesForOsType(devices: AnyDevice[], osType: OSType): AnyDevice[] {
36 return devices.filter((device) => !('osType' in device) || device.osType === osType);
42 { osType }: { osType?: OSType } = {}
50 osType,
54 …ved default device (name: ${manager.device.name}, udid: ${manager.device.udid}, osType: ${osType})`
60 osType,
H A DresolveOptions.ts19 const { osType, name: scheme } = await resolveNativeSchemePropsAsync( constant
29 osType: isOSType(osType) ? osType : undefined,
H A DresolveNativeScheme.ts15 osType?: string;
50 value.type === IOSConfig.Target.TargetType.APPLICATION && value.osType === 'iOS';
/expo/packages/@expo/cli/src/run/ios/options/__tests__/
H A DresolveNativeScheme-test.ts25 { name: 'foobar2', osType: 'watchOS', type: 'com.apple.product-type.application.watchapp' },
26 { name: 'foobar', osType: 'iOS', type: 'com.apple.product-type.application' },
40 osType: 'iOS',
46 { name: 'foobar2', osType: 'watchOS', type: 'com.apple.product-type.application.watchapp' },
60 osType: 'watchOS',
69 { name: 'foobar', osType: 'iOS', type: 'com.apple.product-type.application' },
74 osType: 'iOS',
87 { name: 'foobar', osType: 'iOS', type: 'com.apple.product-type.application' },
88 { name: 'foobar2', osType: 'watchOS', type: 'com.apple.product-type.application.watchapp' },
95 osType: 'watchOS',
[all …]
H A DresolveDevice-test.ts15 osType: 'iOS',
60 expect((await resolveDeviceAsync(undefined, { osType: undefined })).name).toEqual('iPhone 8');
64 expect((await resolveDeviceAsync(true, { osType: undefined })).name).toEqual(`Evan's phone`);
76 expect((await resolveDeviceAsync(`Evan's phone`, { osType: undefined })).name).toEqual(
87 (await resolveDeviceAsync(`00008101-001964A22629003A`, { osType: undefined })).udid
96 await expect(resolveDeviceAsync(`foobar`, { osType: undefined })).rejects.toThrowError(
H A DpromptDevice-test.ts46 osType: 'iOS',
66 osType: 'iOS',
/expo/packages/@expo/config-plugins/src/ios/
H A DBuildScheme.ts37 ): { name: string; osType: string; type: string }[] {
41 let osType = 'iOS'; variable
45 osType = 'watchOS';
71 osType = 'tvOS';
73 osType = 'iOS';
81 osType,
/expo/packages/@expo/cli/src/start/platforms/ios/__tests__/
H A DgetBestSimulator-test.ts21 await expect(getBestUnbootedSimulatorAsync({ osType: 'watchOS' })).resolves.toBe(
30 await expect(getBestUnbootedSimulatorAsync({ osType: 'iOS' })).resolves.toBe(defaultUdid);
H A Dsimctl-test.ts50 expect(device.osType).toEqual(expect.stringMatching(/(iOS|watchOS|tvOS)/));
/expo/packages/@expo/config-plugins/build/ios/
H A DBuildScheme.js46 let osType = 'iOS';
49 osType = 'watchOS';
65 osType = 'tvOS';
67 osType = 'iOS';
74 osType,
H A DBuildScheme.d.ts6 osType: string;
H A DBuildScheme.js.map1osType","type","unquote","productType","TargetType","WATCH","startsWith","APPLICATION","xcConfigur…
/expo/packages/@expo/config-plugins/src/ios/__tests__/
H A DBuildScheme-test.ts34 { name: 'multitarget', osType: 'iOS', type: 'com.apple.product-type.application' },
35 { name: 'shareextension', osType: 'iOS', type: 'com.apple.product-type.app-extension' },