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.

20 lines
839 B
TypeScript
Raw Normal View History

2021-04-02 02:24:13 +03:00
import { ExpoConfig } from '@expo/config-types';
import { XcodeProject } from 'xcode';
import { ConfigPlugin } from '../Plugin.types';
export declare const withDeviceFamily: ConfigPlugin;
export declare function getSupportsTablet(config: Pick<ExpoConfig, 'ios'>): boolean;
export declare function getIsTabletOnly(config: Pick<ExpoConfig, 'ios'>): boolean;
export declare function getDeviceFamilies(config: Pick<ExpoConfig, 'ios'>): number[];
/**
* Wrapping the families in double quotes is the only way to set a value with a comma in it.
*
* @param deviceFamilies
*/
export declare function formatDeviceFamilies(deviceFamilies: number[]): string;
/**
* Add to pbxproj under TARGETED_DEVICE_FAMILY
*/
export declare function setDeviceFamily(config: Pick<ExpoConfig, 'ios'>, { project }: {
project: XcodeProject;
}): XcodeProject;