about summary refs log tree commit diff
path: root/src/lib/sentry.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-04-04 21:19:28 -0700
committerGitHub <noreply@github.com>2024-04-04 21:19:28 -0700
commitcddbbc4bd4aba10306cb828bebc46af3727a6fb6 (patch)
treeee163476ebc7f4d423b70e28588119b4c4997bd6 /src/lib/sentry.ts
parent0433f8ad68c6778d79d97b35f26ca03ffa9b0db9 (diff)
downloadvoidsky-cddbbc4bd4aba10306cb828bebc46af3727a6fb6.tar.zst
migrate to `expo-application` (#3417)
* migrate to `expo-application`

* replace additional usage
Diffstat (limited to 'src/lib/sentry.ts')
-rw-r--r--src/lib/sentry.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/sentry.ts b/src/lib/sentry.ts
index d0a5fe0fd..6b6c1832d 100644
--- a/src/lib/sentry.ts
+++ b/src/lib/sentry.ts
@@ -4,7 +4,7 @@
  */
 
 import {Platform} from 'react-native'
-import app from 'react-native-version-number'
+import {nativeApplicationVersion, nativeBuildVersion} from 'expo-application'
 import * as info from 'expo-updates'
 import {init} from 'sentry-expo'
 
@@ -21,7 +21,7 @@ const buildChannel = (info.channel || 'development') as
  * - `dev`
  * - `1.57.0`
  */
-const release = app.appVersion ?? 'dev'
+const release = nativeApplicationVersion ?? 'dev'
 
 /**
  * Examples:
@@ -33,7 +33,7 @@ const release = app.appVersion ?? 'dev'
  * - `android.1.57.0.46`
  */
 const dist = `${Platform.OS}.${release}${
-  app.buildVersion ? `.${app.buildVersion}` : ''
+  nativeBuildVersion ? `.${nativeBuildVersion}` : ''
 }`
 
 init({