2024-04-05 06:19:28 +02:00
|
|
|
import {nativeApplicationVersion, nativeBuildVersion} from 'expo-application'
|
2023-06-02 22:27:59 +02:00
|
|
|
|
2024-04-16 23:38:25 +02:00
|
|
|
export const BUILD_ENV = process.env.EXPO_PUBLIC_ENV
|
2024-04-04 00:14:44 +02:00
|
|
|
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'
|
2024-04-05 06:19:28 +02:00
|
|
|
export const appVersion = `${nativeApplicationVersion} (${nativeBuildVersion}, ${
|
|
|
|
IS_DEV ? 'development' : UPDATES_CHANNEL
|
|
|
|
})`
|