mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at verify-code 1.1 kB view raw
1/** 2 * Importing these separately from `platform/detection` and `lib/app-info` to 3 * avoid future conflicts and/or circular deps 4 */ 5 6import {Platform} from 'react-native' 7import {nativeApplicationVersion, nativeBuildVersion} from 'expo-application' 8import {init} from 'sentry-expo' 9 10import {BUILD_ENV, IS_DEV, IS_TESTFLIGHT} from 'lib/app-info' 11 12/** 13 * Examples: 14 * - `dev` 15 * - `1.57.0` 16 */ 17const release = nativeApplicationVersion ?? 'dev' 18 19/** 20 * Examples: 21 * - `web.dev` 22 * - `ios.dev` 23 * - `android.dev` 24 * - `web.1.57.0` 25 * - `ios.1.57.0.3` 26 * - `android.1.57.0.46` 27 */ 28const dist = `${Platform.OS}.${nativeBuildVersion}.${ 29 IS_TESTFLIGHT ? 'tf' : '' 30}${IS_DEV ? 'dev' : ''}` 31 32init({ 33 autoSessionTracking: false, 34 dsn: 'https://05bc3789bf994b81bd7ce20c86ccd3ae@o4505071687041024.ingest.sentry.io/4505071690514432', 35 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 36 enableInExpoDevelopment: false, // enable this to test in dev 37 environment: BUILD_ENV ?? 'development', 38 dist, 39 release, 40})