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