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.
reValuate/node_modules/@expo/config-plugins/build/ios/SwiftBridgingHeader.d.ts

34 lines
1.3 KiB
TypeScript
Raw Normal View History

2021-04-02 02:24:13 +03:00
/// <reference types="xcode" />
import { ConfigPlugin, XcodeProject } from '../Plugin.types';
/**
* Ensure a Swift bridging header is created for the project.
* This helps fix problems related to using modules that are written in Swift (lottie, FBSDK).
*
* 1. Ensures the file exists given the project path.
* 2. Writes the file and links to Xcode as a resource file.
* 3. Sets the build configuration `SWIFT_OBJC_BRIDGING_HEADER = [PROJECT_NAME]-Bridging-Header.h`
*/
export declare const withSwiftBridgingHeader: ConfigPlugin;
export declare function ensureSwiftBridgingHeaderSetup({ projectRoot, project, }: {
projectRoot: string;
project: XcodeProject;
}): XcodeProject;
export declare function getDesignatedSwiftBridgingHeaderFileReference({ project, }: {
project: XcodeProject;
}): string | null;
/**
*
* @param bridgingHeader The bridging header filename ex: `ExpoAPIs-Bridging-Header.h`
* @returns
*/
export declare function linkBridgingHeaderFile({ project, bridgingHeader, }: {
project: XcodeProject;
bridgingHeader: string;
}): XcodeProject;
export declare function createBridgingHeaderFile({ projectRoot, projectName, project, bridgingHeader, }: {
project: XcodeProject;
projectName: string;
projectRoot: string;
bridgingHeader: string;
}): XcodeProject;