@expo/config-plugins
Version:
A library for Expo config plugins
50 lines (49 loc) • 1.88 kB
TypeScript
import { JSONValue } from '@expo/json-file';
export type URLScheme = {
CFBundleURLName?: string;
CFBundleURLSchemes: string[];
};
export type InterfaceOrientation = 'UIInterfaceOrientationPortrait' | 'UIInterfaceOrientationPortraitUpsideDown' | 'UIInterfaceOrientationLandscapeLeft' | 'UIInterfaceOrientationLandscapeRight';
export type InterfaceStyle = 'Light' | 'Dark' | 'Automatic';
export type InfoPlist = Record<string, JSONValue | undefined> & {
UIStatusBarHidden?: boolean;
UIStatusBarStyle?: string;
UILaunchStoryboardName?: string | 'SplashScreen';
CFBundleShortVersionString?: string;
CFBundleVersion?: string;
CFBundleDisplayName?: string;
CFBundleIdentifier?: string;
CFBundleName?: string;
CFBundleURLTypes?: URLScheme[];
CFBundleDevelopmentRegion?: string;
ITSAppUsesNonExemptEncryption?: boolean;
LSApplicationQueriesSchemes?: string[];
UIBackgroundModes?: string[];
UISupportedInterfaceOrientations?: InterfaceOrientation[];
GMSApiKey?: string;
GADApplicationIdentifier?: string;
UIUserInterfaceStyle?: InterfaceStyle;
UIRequiresFullScreen?: boolean;
SKAdNetworkItems?: {
SKAdNetworkIdentifier: string;
}[];
branch_key?: {
live?: string;
};
};
export type ExpoPlist = {
EXUpdatesCheckOnLaunch?: string;
EXUpdatesEnabled?: boolean;
EXUpdatesHasEmbeddedUpdate?: boolean;
EXUpdatesLaunchWaitMs?: number;
EXUpdatesRuntimeVersion?: string;
EXUpdatesRequestHeaders?: Record<string, string>;
/**
* @deprecated removed, but kept in types so that it can be mutated (deleted) from existing plists
*/
EXUpdatesSDKVersion?: string;
EXUpdatesURL?: string;
EXUpdatesCodeSigningCertificate?: string;
EXUpdatesCodeSigningMetadata?: Record<string, string>;
EXUpdatesDisableAntiBrickingMeasures?: boolean;
};