my fork of the bluesky client
1import {nativeApplicationVersion, nativeBuildVersion} from 'expo-application'
2
3export const BUILD_ENV = process.env.EXPO_PUBLIC_ENV
4export const IS_DEV = process.env.EXPO_PUBLIC_ENV === 'development'
5export const IS_TESTFLIGHT = process.env.EXPO_PUBLIC_ENV === 'testflight'
6export const IS_INTERNAL = IS_DEV || IS_TESTFLIGHT
7
8// This is the commit hash that the current bundle was made from. The user can see the commit hash in the app's settings
9// along with the other version info. Useful for debugging/reporting.
10export const BUNDLE_IDENTIFIER = process.env.EXPO_PUBLIC_BUNDLE_IDENTIFIER ?? ''
11
12// This will always be in the format of YYMMDD, so that it always increases for each build. This should only be used
13// for Statsig reporting and shouldn't be used to identify a specific bundle.
14export const BUNDLE_DATE =
15 IS_TESTFLIGHT || IS_DEV ? 0 : Number(process.env.EXPO_PUBLIC_BUNDLE_DATE)
16
17export const appVersion = `${nativeApplicationVersion}.${nativeBuildVersion}`
18export const bundleInfo = `${BUNDLE_IDENTIFIER} (${
19 IS_DEV ? 'dev' : IS_TESTFLIGHT ? 'tf' : 'prod'
20})`