react-native-legal
Version:
Acknowledge OSS libraries used in your React Native app
34 lines (33 loc) • 1.17 kB
TypeScript
import type { XcodeProject } from 'xcode';
import xcode from 'xcode';
/**
* Used to obtain first target of type "com.apple.product-type.application"
*/
export declare function getFirstApplicationNativeTarget(pbxproj: XcodeProject): {
uuid: string;
target: xcode.PBXNativeTarget;
} | null;
/**
* Used to get all targets of type "com.apple.product-type.application"
*/
export declare function getAllApplicationNativeTargets(pbxproj: XcodeProject): {
uuid: string;
target: xcode.PBXNativeTarget;
}[];
/**
* Used to add the file to all "Resources" build phases
*
* It's very handy especially when we have multiple application targets and each of them has separate "Resources" build phase
*/
export declare function addToAllPbxResourcesBuildPhases(pbxproj: XcodeProject, pbxFile: pbxFile): void;
/**
* Returns the name of the main group in the project (the main folder where `AppDelegate` usually lives)
*/
export declare function getIOSProjectName(iosProjectPath: string): string;
/**
* Used to grab the XcodeProject instance
*/
export declare function getIOSPbxProj(iosProjectPath: string): {
pbxproj: XcodeProject;
pbxprojPath: string;
};