Move env files into directory with platform specific files

This commit is contained in:
Eric Bailey
2025-07-22 18:56:51 -05:00
parent e9b1715e5e
commit 3380a5e3ed
3 changed files with 36 additions and 0 deletions
View File
+20
View File
@@ -0,0 +1,20 @@
import {nativeBuildVersion} from 'expo-application'
import packageJson from '#/../package.json'
import {BUNDLE_IDENTIFIER, IS_TESTFLIGHT} from '#/env/common'
export * from '#/env/common'
/**
* The semver version of the app, specified in our `package.json`.file. On
* iOs/Android, the native build version is appended to the semver version, so
* that it can be used to identify a specific build.
*/
export const APP_VERSION = `${packageJson.version}.${nativeBuildVersion}`
/**
* The short commit hash and environment of the current bundle.
*/
export const APP_METADATA = `${BUNDLE_IDENTIFIER} (${
__DEV__ ? 'dev' : IS_TESTFLIGHT ? 'tf' : 'prod'
})`
+16
View File
@@ -0,0 +1,16 @@
import packageJson from '#/../package.json'
import {BUNDLE_IDENTIFIER} from '#/env/common'
export * from '#/env/common'
/**
* The semver version of the app, specified in our `package.json`.file. On
* iOs/Android, the native build version is appended to the semver version, so
* that it can be used to identify a specific build.
*/
export const APP_VERSION = packageJson.version
/**
* The short commit hash and environment of the current bundle.
*/
export const APP_METADATA = `${BUNDLE_IDENTIFIER} (${__DEV__ ? 'dev' : 'prod'})`