1import { BundlerProps } from '../resolveBundlerProps';
2
3export type XcodeConfiguration = 'Debug' | 'Release';
4
5export type Options = {
6  /** iOS device to target. */
7  device?: string | boolean;
8  /** Dev server port to use, ignored if `bundler` is `false`. */
9  port?: number;
10  /** Xcode scheme to build. */
11  scheme?: string | boolean;
12  /** Xcode configuration to build. Default `Debug` */
13  configuration?: XcodeConfiguration;
14  /** Should start the bundler dev server. */
15  bundler?: boolean;
16  /** Should install missing dependencies before building. */
17  install?: boolean;
18  /** Should use derived data for builds. */
19  buildCache?: boolean;
20};
21
22export type ProjectInfo = {
23  isWorkspace: boolean;
24  name: string;
25};
26
27export type BuildProps = {
28  /** Root to the iOS native project. */
29  projectRoot: string;
30  /** Is the target a simulator. */
31  isSimulator: boolean;
32  xcodeProject: ProjectInfo;
33  device: { name: string; udid: string };
34  configuration: XcodeConfiguration;
35  /** Disable the initial bundling from the native script. */
36  shouldSkipInitialBundling: boolean;
37  /** Should use derived data for builds. */
38  buildCache: boolean;
39  scheme: string;
40} & BundlerProps;
41