| /expo/packages/@expo/cli/src/start/project/__tests__/ |
| H A D | devices-test.ts | 30 expect(devices.length).toBe(1); 31 expect(devices[0].installationId).toBe('test-device-id'); 37 expect(devices.length).toBe(2); 49 expect(devices.length).toBe(10); 62 devices: devicesInfo, 67 expect(devices.length).toBe(10); 68 expect(devices[0].installationId).toBe('newest-device'); 80 expect(devices.length).toBe(1); 81 expect(devices[0].installationId).toBe('new-device-id'); 88 devices: [ [all …]
|
| /expo/packages/@expo/cli/src/start/platforms/ios/ |
| H A D | promptAppleDevice.ts | 14 devices: Device[], 20 while (devices[0].udid !== defaultId && iterations < devices.length) { 21 devices.push(devices.shift()!); 25 return devices; 30 devices: Device[], 33 devices = await sortDefaultDeviceToBeginningAsync(devices, osType); 34 const results = await promptAppleDeviceInternalAsync(devices); 35 return devices.find(({ udid }) => results === udid)!; 38 async function promptAppleDeviceInternalAsync(devices: Device[]): Promise<string> { 47 choices: devices.map((item) => {
|
| H A D | simctl.ts | 41 devices: { 173 return Object.values(simulatorDeviceInfo.devices).flatMap((runtime) => 181 const devices = await getBootedSimulatorsAsync(); constant 183 return devices.find((bootedDevice) => bootedDevice.udid === device.udid) ?? null; 186 return devices[0] ?? null; 244 for (const runtime of Object.keys(info.devices)) { 251 const sims = info.devices[runtime]; 265 return Object.values(simulatorDeviceInfo.devices).flat();
|
| /expo/packages/@expo/cli/src/start/project/ |
| H A D | devices.ts | 11 devices: DeviceInfo[]; 19 devices: [], 36 const filteredDevices = filterOldDevices(devicesInfo.devices); 37 if (filteredDevices.length < devicesInfo.devices.length) { 40 devices: filteredDevices, 52 return await DevicesFile.setAsync(projectRoot, { devices: [] }); 72 const { devices } = await getDevicesInfoAsync(projectRoot); constant 73 const newDevicesJson = devices 76 await setDevicesInfoAsync(projectRoot, { devices: filterOldDevices(newDevicesJson) }); 79 function filterOldDevices(devices: DeviceInfo[]) { [all …]
|
| /expo/packages/@expo/cli/src/run/ios/options/ |
| H A D | resolveDevice.ts | 27 const devices = [...connectedDevices, ...simulators]; constant 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); 59 const devices: AnyDevice[] = await getDevicesAsync({ constant 66 await promptDeviceAsync(devices) 68 findDeviceFromSearchValue(devices, device.toLowerCase()); 82 function findDeviceFromSearchValue(devices: AnyDevice[], searchValue: string): AnyDevice { 83 const device = devices.find(
|
| H A D | promptDevice.ts | 32 export async function promptDeviceAsync(devices: AnyDevice[]): Promise<AnyDevice> { 39 choices: devices.map((item) => formatDeviceChoice(item)), 45 return devices.find((device) => device.udid === value)!;
|
| /expo/packages/@expo/cli/src/start/platforms/ios/__tests__/ |
| H A D | promptAppleDevice-test.ts | 11 const devices = await sortDefaultDeviceToBeginningAsync([ constant 17 expect(devices[0].udid).toBe('should-be-first'); 22 const devices = await sortDefaultDeviceToBeginningAsync([ constant 26 expect(devices[0].udid).toBe('abc');
|
| H A D | simctl-test.ts | 45 const devices = await getDevicesAsync(); constant 46 expect(devices.length).toBe(12); 47 for (const device of devices) {
|
| /expo/packages/expo-camera/src/ |
| H A D | WebUserMediaManager.ts | 132 devices?: MediaDeviceInfo[] 134 return await supportsCameraType(['front', 'user', 'facetime'], 'user', devices); 138 devices?: MediaDeviceInfo[] 140 return await supportsCameraType(['back', 'rear'], 'environment', devices); 146 devices?: MediaDeviceInfo[] 148 if (!devices) { 152 devices = await navigator.mediaDevices.enumerateDevices(); 154 const cameras = devices.filter((t) => t.kind === 'videoinput');
|
| /expo/packages/expo-camera/build/ |
| H A D | WebUserMediaManager.js | 93 export async function isFrontCameraAvailableAsync(devices) { argument 94 return await supportsCameraType(['front', 'user', 'facetime'], 'user', devices); 96 export async function isBackCameraAvailableAsync(devices) { argument 97 return await supportsCameraType(['back', 'rear'], 'environment', devices); 99 async function supportsCameraType(labels, type, devices) { argument 100 if (!devices) { 104 devices = await navigator.mediaDevices.enumerateDevices(); 106 const cameras = devices.filter((t) => t.kind === 'videoinput');
|
| H A D | WebUserMediaManager.d.ts | 10 export declare function isFrontCameraAvailableAsync(devices?: MediaDeviceInfo[]): Promise<null | st… 11 export declare function isBackCameraAvailableAsync(devices?: MediaDeviceInfo[]): Promise<null | str…
|
| /expo/packages/@expo/cli/src/start/platforms/android/ |
| H A D | adbReverse.ts | 25 const devices = await getAttachedDevicesAsync(); constant 26 for (const device of devices) { 40 const devices = await getAttachedDevicesAsync(); constant 41 for (const device of devices) {
|
| H A D | promptAndroidDevice.ts | 21 export async function promptForDeviceAsync(devices: Device[]): Promise<Device> { 29 choices: devices.map((item) => { 40 const device = devices.find(({ name }) => name === value);
|
| H A D | AndroidDeviceManager.ts | 20 const devices = await getDevicesAsync(); constant 21 const device = devices.find((device) => device.name === name); 41 const devices = await getDevicesAsync(); constant 42 const _device = shouldPrompt ? await promptForDeviceAsync(devices) : devices[0];
|
| /expo/packages/@expo/cli/src/start/server/metro/inspector-proxy/ |
| H A D | proxy.ts | 22 public readonly devices: Map<string, D> = new Map() property in ExpoInspectorProxy 27 this.metroProxy._devices = this.devices; 86 const oldDevice = this.devices.get(deviceId); 104 this.devices.set(deviceId, newDevice); 107 if (this.devices.get(deviceId) === newDevice) { 108 this.devices.delete(deviceId); 149 const device = this.devices.get(deviceId);
|
| /expo/packages/@expo/cli/src/start/server/metro/inspector-proxy/__tests__/ |
| H A D | proxy.test.ts | 12 expect(metroProxy._devices).toBe(expoProxy.devices); 74 expect(expoProxy.devices.size).toBe(1); 92 expect(expoProxy.devices.size).toBe(1); 93 expect(expoProxy.devices.get('someuniqueid')).toBeDefined(); 109 expect(expoProxy.devices.size).toBe(1); 117 expect(expoProxy.devices.size).toBe(0); 136 const device = expoProxy.devices.values().next().value; 165 const device = expoProxy.devices.values().next().value; 200 const oldDevice = expoProxy.devices.get('samedevice'); 221 const newDevice = expoProxy.devices.get('samedevice'); [all …]
|
| /expo/packages/@expo/cli/src/run/ios/options/__tests__/ |
| H A D | resolveDevice-test.ts | 35 promptDeviceAsync: jest.fn(async (devices) => devices[0]), 47 sortDefaultDeviceToBeginningAsync: jest.fn((devices) => devices),
|
| /expo/tools/src/commands/ |
| H A D | ClientInstall.ts | 49 const devices = await Android.getAttachedDevicesAsync(); constant 50 if (devices.length === 0) { 54 const device = devices[0]; 55 if (devices.length > 1) {
|
| /expo/packages/@expo/cli/src/run/ios/appleDevice/client/ |
| H A D | UsbmuxdClient.ts | 161 const devices = await this.getDevices(); constant 163 if (!devices.length) { 168 return devices[0]; 171 for (const device of devices) {
|
| /expo/docs/pages/build/ |
| H A D | internal-distribution.mdx | 21 - Add a couple of test iOS devices to a provisioning profile 96 …devices that you want to be able to install your app. Run the following command to generate a URL … 100 …n register new devices at any time, but builds that were created before the device was registered … 167 ## Managing devices 169 You can see any devices registered via `eas device:create` by running: 172 cmd={['# List devices registered for ad hoc provisioning', '$ eas device:list']} 178 ### Remove devices 184 … '# Delete devices from your Expo account, optionally disable them on the Apple Developer Portal', 189 … command will also prompt you to disable the device on the Apple Developer Portal. Disabled devices 193 ### Rename devices [all …]
|
| /expo/packages/@expo/cli/src/start/server/ |
| H A D | DevelopmentSession.ts | 90 const { devices } = await ProjectDevices.getDevicesInfoAsync(this.projectRoot); constant 91 return devices.map(({ installationId }) => installationId);
|
| /expo/docs/pages/guides/ |
| H A D | sharing-preview-releases.mdx | 12 … build of your application directly on devices. This gives you full control of putting specific bu… 16 To share your application to Android devices, you must build an APK (Android application package fi… 23 …ple.com/xcode/mac/current/#/dev7ccaf4d3c) to distribute your app to test devices once they have be… 37 Unlike Ad Hoc Distribution, there is no limit to the number of devices that can install your applic… 43 TestFlight is another option to distribute your application to iOS devices. TestFlight also require…
|
| /expo/docs/pages/develop/development-builds/ |
| H A D | share-with-your-team.mdx | 3 …ption: Learn how to install and share the development with your team or run it on multiple devices. 12 …devices. This gives you full control of putting specific builds on devices, allowing you to iterat… 23 …ter any new iOS devices after creating a development build, you'll need to create a new developmen…
|
| /expo/fastlane/android/metadata/en-US/changelogs/ |
| H A D | 114.txt | 3 Version 2.11.4 fixed crashes happening on Android 9.0 devices when displaying some animations using…
|
| /expo/packages/@expo/cli/src/start/server/__tests__/ |
| H A D | DevelopmentSession-test.ts | 23 devices: [{ installationId: '123' }, { installationId: '456' }], 84 devices: [{ installationId: '123' }, { installationId: '456' }],
|