@applicaster/quick-brick-core
Version:
Core package for Applicaster's Quick Brick App
41 lines (37 loc) • 1.26 kB
text/typescript
// quick-brick-core const provide constants to be used throughout the app
export const LONG_KEY_PRESS_TIMEOUT = 480;
/**
* Required sessions keys
*
* https://docs.applicaster.com/integrations/available-context-keys
*
* Some of the keys defined in the docs are not in the session on launch, they are coming from plugins:
*
* signedDeviceInfoToken comes from Applicaster DI
* https://github.com/applicaster/QuickBrick/blob/main/packages/zapp-react-native-redux/AppData/index.js#L83
*
* timeZoneOffset and isDebug is being defined in the redux getContext method
* https://github.com/applicaster/QuickBrick/blob/main/packages/zapp-react-native-redux/ZappPipes/getContext.ts
*
* advertisingIdentifier is being defined in the session storage plugin
* https://github.com/applicaster/Zapp-Frameworks/tree/master/plugins/session-storage-idfa
*/
export const requiredSessionKeys = [
"bundleIdentifier",
"deviceHeight",
"deviceMake",
"deviceModel",
"deviceType",
"deviceWidth",
"languageCode",
"languageLocale",
"layoutId",
"osVersion",
"platform",
"sdk_version",
"store",
"userAgent",
"version_name",
];
export const QUICK_BRICK_NAVBAR = "quick-brick-navbar";
export const QUICK_BRICK_CONTENT = "quick-brick-content";