UNPKG

expo-build-properties

Version:

Config plugin to customize native build properties on prebuild

24 lines (23 loc) 1.32 kB
import { ConfigPlugin } from 'expo/config-plugins'; import type { PluginConfigType } from './pluginConfig'; export declare const withAndroidBuildProperties: ConfigPlugin<PluginConfigType>; /** * Appends `props.android.extraProguardRules` content into `android/app/proguard-rules.pro` */ export declare const withAndroidProguardRules: ConfigPlugin<PluginConfigType>; /** * Purge generated proguard contents from previous prebuild. * This plugin only runs once in the prebuilding phase and should execute before any `withAndroidProguardRules` calls. */ export declare const withAndroidPurgeProguardRulesOnce: ConfigPlugin; /** * Update `newProguardRules` to original `proguard-rules.pro` contents if needed * * @param contents the original `proguard-rules.pro` contents * @param newProguardRules new proguard rules to add. If the value is null, the returned value will be original `contents`. * @returns return updated contents */ export declare function updateAndroidProguardRules(contents: string, newProguardRules: string | null, updateMode: 'append' | 'overwrite'): string; export declare const withAndroidCleartextTraffic: ConfigPlugin<PluginConfigType>; export declare const withAndroidQueries: ConfigPlugin<PluginConfigType>; export declare const withAndroidDayNightTheme: ConfigPlugin<PluginConfigType>;