This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-02 02:24:13 +03:00

24 lines
686 B
TypeScript

import { PBXNativeTarget, UUID, XcodeProject } from 'xcode';
export interface IosProject {
projectName: string;
/**
* Root path to directory containing project source files.
*/
projectPath: string;
/**
* pbxProject reference that allows to modify `.pbxproj` file.
*/
pbxProject: XcodeProject;
/**
* main application PBXNativeTarget from `.pbxproj` file.
*/
applicationNativeTarget: {
uuid: UUID;
target: PBXNativeTarget;
};
}
/**
* Reads iOS project and locates `.pbxproj` file for further parsing and modifications.
*/
export default function readPbxProject(projectRootPath: string): Promise<IosProject>;