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.
2021-04-02 02:24:13 +03:00

12 lines
626 B
TypeScript

import { ConfigPlugin } from '../Plugin.types';
import { InfoPlist } from './IosConfig.types';
/**
* Apply permissions and their respective descriptions to the iOS Info.plist.
* Providing a null description will remove the permission from the Info.plist.
*
* @param config
* @param permissions record of strings where the key matches Info.plist permissions and the values are the permission descriptions.
*/
export declare const withPermissions: ConfigPlugin<Record<string, string | null>>;
export declare function applyPermissions(permissions: Record<string, string | null>, infoPlist: Record<string, any>): InfoPlist;