Add physical iOS support to internal build

Summary: Adds support for physical iOS devices, when the necessary dependencies are present. Unfortunately these aren't open sourced yet so the open source build won't get this feature yet.

Reviewed By: priteshrnandgaonkar

Differential Revision: D13001473

fbshipit-source-id: d8c2bcd53b7972bec676717c8af0112800b918d0
This commit is contained in:
John Knox
2018-12-03 11:32:38 -08:00
committed by Facebook Github Bot
parent 8d93946739
commit 40f50d48e3
22 changed files with 603 additions and 89 deletions

View File

@@ -0,0 +1,47 @@
/**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
const errorMessage = 'Physical iOS devices not yet supported';
export type DeviceTarget = {
udid: string,
type: 'physical' | 'emulator',
name: string,
};
function isAvailable(): boolean {
return false;
}
function targets(): Promise<Array<DeviceTarget>> {
return Promise.reject(errorMessage);
}
function push(
udid: string,
src: string,
bundleId: string,
dst: string,
): Promise<void> {
return Promise.reject(errorMessage);
}
function pull(
udid: string,
src: string,
bundleId: string,
dst: string,
): Promise<void> {
return Promise.reject(errorMessage);
}
export default {
isAvailable: isAvailable,
targets: targets,
push: push,
pull: pull,
};