Self review

This commit is contained in:
Eric Bailey
2025-07-22 19:27:18 -05:00
parent 4d4b903ccd
commit 78a6368b78
3 changed files with 5 additions and 23 deletions
+2 -19
View File
@@ -1,33 +1,16 @@
/**
* Importing these separately from `platform/detection` and `lib/app-info` to
* avoid future conflicts and/or circular deps
*/
import {init} from '@sentry/react-native'
import pkgJson from '#/../package.json'
import * as env from '#/env'
/**
* Examples:
* - `dev`
* - `1.99.0`
*/
const release = pkgJson.version
/**
* The latest deployed short commit hash
*/
const dist = env.BUNDLE_IDENTIFIER || 'dev'
init({
enabled: !env.IS_DEV && !!env.SENTRY_DSN,
autoSessionTracking: false,
dsn: env.SENTRY_DSN,
debug: false, // If `true`, Sentry will try to print out useful debugging information if something goes wrong with sending the event. Set it to `false` in production
environment: env.ENV,
dist,
release,
dist: env.BUNDLE_IDENTIFIER,
release: pkgJson.version,
ignoreErrors: [
/*
* Unknown internals errors