@alaudoni/expo-firebase-extension-plugin
Version:
The Firebase Expo plugin allows you to use Firebase without leaving the managed workflow. Developed in collaboration with SweetGreen.
59 lines (50 loc) • 1.9 kB
text/typescript
/**
* FirebasePluginProps refer to the properties set by the user in their app config file (e.g: app.json)
*/
export type FirebasePluginProps = {
/**
* (required) Used to configure APNs environment entitlement. "development" or "production"
*/
mode: Mode;
/**
* (optional) Used to configure Apple Team ID. You can find your Apple Team ID by running expo credentials:manager e.g: "91SW8A37CR"
*/
devTeam?: string;
/**
* (optional) Target IPHONEOS_DEPLOYMENT_TARGET value to be used when adding the iOS NSE. A deployment target is nothing more than
* the minimum version of the operating system the application can run on. This value should match the value in your Podfile e.g: "12.0".
*/
iPhoneDeploymentTarget?: string;
/**
* (optional) The small notification icons for Android. Images will be automatically scaled up/down, the recommended size
* is 96x96 to always scale down.
*/
smallIcons?: string[];
/**
* (optional) The accent color to use for notification icons on Android. Must be a valid Android color resource, for example: "#FF0000"
*/
smallIconAccentColor?: string;
/**
* (optional) The large notification icons for Android. Images will be automatically scaled up/down to 256x256.
*/
largeIcons?: string[];
/**
* (optional) The local path to a custom Notification Service Extension (NSE), written in Objective-C. The NSE will typically start as a copy
* of the default NSE found at (support/serviceExtensionFiles/NotificationService.m, then altered to support any custom
* logic required.
*/
iosNSEFilePath?: string;
};
export const Firebase_PLUGIN_PROPS: string[] = [
"mode",
"devTeam",
"iPhoneDeploymentTarget",
"smallIcons",
"largeIcons",
"iosNSEFilePath",
"smallIconAccentColor"
];
export enum Mode {
Dev = "development",
Prod = "production"
}