about summary refs log tree commit diff
path: root/src/env/index.ts
diff options
context:
space:
mode:
authorJaz Volpert <ericvolp12@gmail.com>2025-07-30 17:40:42 +0000
committerJaz Volpert <ericvolp12@gmail.com>2025-07-30 17:40:42 +0000
commit13499de325314804d2564c70f0392191d15f0680 (patch)
treef73c691d15ddc90663accf1cb0b6f50084b15770 /src/env/index.ts
parent2d23d821d395dd81691f7a1590800e122b59e3c6 (diff)
parentd4b23d3ab4e8448321fecc7bd46b6531ada80348 (diff)
downloadvoidsky-13499de325314804d2564c70f0392191d15f0680.tar.zst
Merge branch 'main' into go-124
Diffstat (limited to 'src/env/index.ts')
-rw-r--r--src/env/index.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/env/index.ts b/src/env/index.ts
new file mode 100644
index 000000000..8558c55b5
--- /dev/null
+++ b/src/env/index.ts
@@ -0,0 +1,19 @@
+import {nativeBuildVersion} from 'expo-application'
+
+import {BUNDLE_IDENTIFIER, IS_TESTFLIGHT, RELEASE_VERSION} 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 = `${RELEASE_VERSION}.${nativeBuildVersion}`
+
+/**
+ * The short commit hash and environment of the current bundle.
+ */
+export const APP_METADATA = `${BUNDLE_IDENTIFIER.slice(0, 7)} (${
+  __DEV__ ? 'dev' : IS_TESTFLIGHT ? 'tf' : 'prod'
+})`