@react-native-community/cli-types
Version:
53 lines • 1.68 kB
TypeScript
/**
* Types in this document describe the data that is expected by https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/cocoapods/autolinking.rb.
* When performing changes, make sure to sync it with the Ruby file.
*/
export interface IOSProjectParams {
sourceDir?: string;
watchModeCommandParams?: string[];
automaticPodsInstallation?: boolean;
assets?: string[];
}
export type IOSProjectInfo = {
name: string;
path: string;
isWorkspace: boolean;
};
export interface IOSProjectConfig {
sourceDir: string;
xcodeProject: IOSProjectInfo | null;
watchModeCommandParams?: string[];
automaticPodsInstallation?: boolean;
assets: string[];
}
export interface IOSDependencyConfig {
podspecPath: string;
version: string;
scriptPhases: Array<IOSScriptPhase>;
configurations: string[];
}
export type IOSDependencyParams = Omit<Partial<IOSDependencyConfig>, 'podspecPath' | 'version'>;
/**
* @see https://www.rubydoc.info/gems/cocoapods-core/Pod/Podfile/DSL#script_phase-instance_method
*
* The only difference is that `script` may be omitted in favour of a
* `path`, relative to the root of the package, whose content will be
* used.
*/
export type IOSScriptPhase = ({
script: string;
} | {
path: string;
}) & {
name: string;
shell_path?: string;
input_files?: string[];
output_files?: string[];
input_file_lists?: string[];
output_file_lists?: string[];
show_env_vars_in_log?: boolean;
execution_position?: 'before_compile' | 'after_compile' | 'any';
dependency_file?: string;
always_out_of_date?: string;
};
//# sourceMappingURL=ios.d.ts.map