MCPcopy
hub / github.com/getsentry/sentry-react-native / getDefaultRelease

Function getDefaultRelease

packages/core/src/js/utils/release.ts:24–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 *
23 */
24export function getDefaultRelease(): string | undefined {
25 if (notWeb()) {
26 // Mobile platforms use native release from the Release integration.
27 return undefined;
28 }
29
30 // Web platforms (Expo Web) use the global release constants.
31 // Release set in the options is need for Session and Replay integrations.
32 return createReleaseFromGlobalReleaseConstants();
33}

Callers 1

initFunction · 0.90

Calls 2

notWebFunction · 0.90

Tested by

no test coverage detected