Bluesky app fork with some witchin' additions 馃挮
at main 43 lines 1.3 kB view raw
1import {Platform} from 'react-native' 2import {nativeBuildVersion} from 'expo-application' 3 4import {BUNDLE_IDENTIFIER, IS_TESTFLIGHT, RELEASE_VERSION} from '#/env/common' 5 6export * from '#/env/common' 7 8/** 9 * The semver version of the app, specified in our `package.json`.file. On 10 * iOs/Android, the native build version is appended to the semver version, so 11 * that it can be used to identify a specific build. 12 */ 13export const APP_VERSION = `${RELEASE_VERSION}.${nativeBuildVersion}` 14 15/** 16 * The short commit hash and environment of the current bundle. 17 */ 18export const APP_METADATA = `${BUNDLE_IDENTIFIER.slice(0, 7)} (${ 19 __DEV__ ? 'dev' : IS_TESTFLIGHT ? 'tf' : 'prod' 20})` 21 22/** 23 * Platform detection 24 */ 25export const IS_IOS: boolean = Platform.OS === 'ios' 26export const IS_ANDROID: boolean = Platform.OS === 'android' 27export const IS_NATIVE: boolean = true 28export const IS_WEB: boolean = false 29 30/** 31 * Web-specific platform detection 32 */ 33export const IS_WEB_TOUCH_DEVICE: boolean = true 34export const IS_WEB_MOBILE: boolean = false 35export const IS_WEB_MOBILE_IOS: boolean = false 36export const IS_WEB_MOBILE_ANDROID: boolean = false 37export const IS_WEB_SAFARI: boolean = false 38export const IS_WEB_FIREFOX: boolean = false 39 40/** 41 * Misc 42 */ 43export const IS_HIGH_DPI: boolean = true