UNPKG

1.97 kBTypeScriptView Raw
1import { InfoPlist } from './IosConfig.types';
2import { ExpoConfig } from '../Config.types';
3export declare function getBundleIdentifier(config: ExpoConfig): string | null;
4/**
5 * In Turtle v1 we set the bundleIdentifier directly on Info.plist rather
6 * than in pbxproj
7 */
8export declare function setBundleIdentifier(config: ExpoConfig, infoPlist: InfoPlist): InfoPlist | {
9 CFBundleIdentifier: string;
10 CFBundleShortVersionString?: string | undefined;
11 CFBundleVersion?: string | undefined;
12 CFBundleDisplayName?: string | undefined;
13 CFBundleName?: string | undefined;
14 CFBundleURLTypes?: import("./IosConfig.types").URLScheme[] | undefined;
15 ITSAppUsesNonExemptEncryption?: boolean | undefined;
16 LSApplicationQueriesSchemes?: string[] | undefined;
17 FacebookAppID?: string | undefined;
18 FacebookDisplayName?: string | undefined;
19 FacebookAutoInitEnabled?: boolean | undefined;
20 FacebookAutoLogAppEventsEnabled?: boolean | undefined;
21 FacebookAdvertiserIDCollectionEnabled?: boolean | undefined;
22 UISupportedInterfaceOrientations?: import("./IosConfig.types").InterfaceOrientation[] | undefined;
23 GMSApiKey?: string | undefined;
24};
25/**
26 * Updates the bundle identifier for a given pbxproj
27 * * @param pbxprojPath Path to pbxproj file
28 * @param bundleIdentifier Bundle identifier to set in the pbxproj
29 */
30export declare function updateBundleIdentifierForPbxproj(pbxprojPath: string, bundleIdentifier: string): void;
31/**
32 * Updates the bundle identifier for pbx projects inside the ios directory of the given project root
33 *
34 * @param projectRoot Path to project root containing the ios directory
35 * @param bundleIdentifier Desired bundle identifier
36 */
37export declare function setBundleIdentifierForPbxproj(projectRoot: string, bundleIdentifier: string): void;
38export declare function resetAllPlistBundleIdentifiers(projectRoot: string): void;
39export declare function resetPlistBundleIdentifier(plistPath: string): void;