about summary refs log tree commit diff
path: root/src/lib/app-info.ts
blob: 83406bf2ef5e8fc119d05161bf4771742c340f2d (plain) (blame)
1
2
3
4
5
6
7
8
9
import {nativeApplicationVersion, nativeBuildVersion} from 'expo-application'

export const IS_DEV = process.env.EXPO_PUBLIC_ENV === 'development'
export const IS_TESTFLIGHT = process.env.EXPO_PUBLIC_ENV === 'testflight'

const UPDATES_CHANNEL = IS_TESTFLIGHT ? 'testflight' : 'production'
export const appVersion = `${nativeApplicationVersion} (${nativeBuildVersion}, ${
  IS_DEV ? 'development' : UPDATES_CHANNEL
})`