Align on RELEASE_VERSION
This commit is contained in:
Vendored
-1
@@ -7,7 +7,6 @@ import packageJson from '#/../package.json'
|
||||
*/
|
||||
export const RELEASE_VERSION: string =
|
||||
process.env.EXPO_PUBLIC_RELEASE_VERSION || packageJson.version
|
||||
export const PACKAGE_VERSION: string = packageJson.version
|
||||
|
||||
/**
|
||||
* The env the app is running in e.g. development, testflight, production
|
||||
|
||||
Vendored
+2
-3
@@ -1,7 +1,6 @@
|
||||
import {nativeBuildVersion} from 'expo-application'
|
||||
|
||||
import packageJson from '#/../package.json'
|
||||
import {BUNDLE_IDENTIFIER, IS_TESTFLIGHT} from '#/env/common'
|
||||
import {BUNDLE_IDENTIFIER, IS_TESTFLIGHT, RELEASE_VERSION} from '#/env/common'
|
||||
|
||||
export * from '#/env/common'
|
||||
|
||||
@@ -10,7 +9,7 @@ export * from '#/env/common'
|
||||
* 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}`
|
||||
export const APP_VERSION = `${RELEASE_VERSION}.${nativeBuildVersion}`
|
||||
|
||||
/**
|
||||
* The short commit hash and environment of the current bundle.
|
||||
|
||||
Vendored
+2
-3
@@ -1,5 +1,4 @@
|
||||
import packageJson from '#/../package.json'
|
||||
import {BUNDLE_IDENTIFIER} from '#/env/common'
|
||||
import {BUNDLE_IDENTIFIER, RELEASE_VERSION} from '#/env/common'
|
||||
|
||||
export * from '#/env/common'
|
||||
|
||||
@@ -8,7 +7,7 @@ export * from '#/env/common'
|
||||
* 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
|
||||
export const APP_VERSION = RELEASE_VERSION
|
||||
|
||||
/**
|
||||
* The short commit hash and environment of the current bundle.
|
||||
|
||||
@@ -210,7 +210,7 @@ function toStatsigUser(did: string | undefined): StatsigUser {
|
||||
refSrc,
|
||||
refUrl,
|
||||
platform: Platform.OS as 'ios' | 'android' | 'web',
|
||||
appVersion: env.PACKAGE_VERSION,
|
||||
appVersion: env.RELEASE_VERSION,
|
||||
bundleIdentifier: env.BUNDLE_IDENTIFIER,
|
||||
bundleDate: env.BUNDLE_DATE,
|
||||
appLanguage: languagePrefs.appLanguage,
|
||||
|
||||
Reference in New Issue
Block a user