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:
committed by
Facebook Github Bot
parent
8d93946739
commit
40f50d48e3
47
src/fb-stubs/iOSContainerUtility.js
Normal file
47
src/fb-stubs/iOSContainerUtility.js
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user