Self review

This commit is contained in:
Eric Bailey
2025-07-22 19:27:18 -05:00
parent 70fa7a1a20
commit 8065e1827c
3 changed files with 5 additions and 23 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ export const IS_INTERNAL = IS_DEV || IS_TESTFLIGHT
* for debugging/reporting.
*/
export const BUNDLE_IDENTIFIER: string =
process.env.EXPO_PUBLIC_BUNDLE_IDENTIFIER ?? ''
process.env.EXPO_PUBLIC_BUNDLE_IDENTIFIER || 'dev'
/**
* This will always be in the format of YYMMDD, so that it always increases for
@@ -48,7 +48,7 @@ export const LOG_LEVEL = (process.env.EXPO_PUBLIC_LOG_LEVEL || 'info') as
| 'error'
/**
* Currently unused. Enable debug for a subset of the debug logs.
* Enable debug logs for specific logger instances
*/
export const LOG_DEBUG: string = process.env.EXPO_PUBLIC_LOG_DEBUG || ''
+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
+1 -2
View File
@@ -53,9 +53,8 @@ module.exports = async function (env, argv) {
project: 'app',
authToken: process.env.SENTRY_AUTH_TOKEN,
release: {
// env is undefined for Render.com builds, fall back
name: version,
dist: process.env.EXPO_PUBLIC_BUNDLE_IDENTIFIER || 'dev',
dist: process.env.EXPO_PUBLIC_BUNDLE_IDENTIFIER,
},
}),
)