32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
import { ExpoConfig } from '@expo/config-types';
|
|
import { ConfigPlugin } from '../Plugin.types';
|
|
declare type DPIString = 'mdpi' | 'hdpi' | 'xhdpi' | 'xxhdpi' | 'xxxhdpi';
|
|
declare type dpiMap = Record<DPIString, {
|
|
folderName: string;
|
|
scale: number;
|
|
}>;
|
|
export declare const dpiValues: dpiMap;
|
|
export declare const ANDROID_RES_PATH = "android/app/src/main/res/";
|
|
export declare const withIcons: ConfigPlugin;
|
|
export declare function getIcon(config: ExpoConfig): string | null;
|
|
export declare function getAdaptiveIcon(config: ExpoConfig): {
|
|
foregroundImage: string | null;
|
|
backgroundColor: string | null;
|
|
backgroundImage: string | null;
|
|
};
|
|
/**
|
|
* Resizes the user-provided icon to create a set of legacy icon files in
|
|
* their respective "mipmap" directories for <= Android 7, and creates a set of adaptive
|
|
* icon files for > Android 7 from the adaptive icon files (if provided).
|
|
*/
|
|
export declare function setIconAsync(config: ExpoConfig, projectRoot: string): Promise<true | null>;
|
|
/**
|
|
* Configures adaptive icon files to be used on Android 8 and up. A foreground image must be provided,
|
|
* and will have a transparent background unless:
|
|
* - A backgroundImage is provided, or
|
|
* - A backgroundColor was specified
|
|
*/
|
|
export declare function configureAdaptiveIconAsync(projectRoot: string, foregroundImage: string, backgroundImage: string | null, backgroundColor: string): Promise<void>;
|
|
export declare const createAdaptiveIconXmlString: (backgroundImage: string | null) => string;
|
|
export {};
|