@embrace-io/react-native
Version:
A React Native wrapper for the Embrace SDK
19 lines (18 loc) • 1.06 kB
TypeScript
/**
* This file provides helpers on top of https://github.com/apache/cordova-node-xcode/tree/3.0.1 to perform a handful
* of operations not directly supported by that library.
*
* This is a subset and duplicates some functionality from packages/core/scripts/util/ios.ts, once our automated install
* script is fully replaced by our Expo Config plugin that file can be removed
*/
import { type XcodeProject } from "@expo/config-plugins";
type ProjectFileType = "resource" | "source";
type BuildPhase = {
key: string;
code: string[];
};
declare const findPhase: (project: XcodeProject, matcher: string) => BuildPhase | null;
declare const modifyPhase: (project: XcodeProject, phaseKey: string, matcher: RegExp, addBefore: string) => void;
declare const addFile: (project: XcodeProject, groupName: string, path: string, fileType?: ProjectFileType) => void;
declare const updateBuildProperty: (project: XcodeProject, groupName: string, propertyName: string, value: string) => void;
export { addFile, updateBuildProperty, findPhase, modifyPhase };