// Module ID: 867 // Function ID: 868 // Dependencies: [32, 17, 681, 862, 868] // Exports: getDefaultEnvironment, getExpoGoVersion, getExpoSdkVersion, getHermesVersion, getReactNativeVersion, isExpo, isExpoGo, isFabricEnabled, isHermesEnabled, isMobileOs, isRunningInMetroDevServer, isTurboModuleEnabled, isWeb, notMobileOs, notWeb // Module 867 import RN_GLOBAL_OBJ from "RN_GLOBAL_OBJ" /* 681 */; import TurboModuleRegistry from "TurboModuleRegistry" /* 862 */; import _mod868 from "module_868" /* 868 */; import _slicedToArray from "module_32" /* 32 */; require = fn; const Platform = fn(17).Platform; export const isHermesEnabled = function isHermesEnabled() { return RN_GLOBAL_OBJ.RN_GLOBAL_OBJ.HermesInternal; }; export const isTurboModuleEnabled = function isTurboModuleEnabled() { let tmp3 = true === RN_GLOBAL_OBJ.RN_GLOBAL_OBJ.RN$Bridgeless; if (!tmp3) { tmp3 = null != RN_GLOBAL_OBJ.RN_GLOBAL_OBJ.__turboModuleProxy; } return tmp3; }; export const isFabricEnabled = function isFabricEnabled() { return null != RN_GLOBAL_OBJ.RN_GLOBAL_OBJ.nativeFabricUIManager; }; export const getReactNativeVersion = function getReactNativeVersion() { if (TurboModuleRegistry.ReactNativeLibraries.ReactNativeVersion) { const version = TurboModuleRegistry.ReactNativeLibraries.ReactNativeVersion.version; ({ major, minor, patch } = version); let str2 = ""; if (null != version.prerelease) { const _HermesInternal = HermesInternal; str2 = "-" + version.prerelease; } const _HermesInternal2 = HermesInternal; return "" + major + "." + minor + "." + patch + str2; } }; export const isExpo = function isExpo() { return null != RN_GLOBAL_OBJ.RN_GLOBAL_OBJ.expo; }; export const isExpoGo = function isExpoGo() { return _mod868.getExpoGo(); }; export const getExpoGoVersion = function getExpoGoVersion() { const expoConstants = _mod868.getExpoConstants(); let expoVersion; if (null != expoConstants) { expoVersion = expoConstants.expoVersion; } let expoVersion1; if (typeof expoVersion === "string") { expoVersion1 = expoConstants.expoVersion; } return expoVersion1; }; export const getExpoSdkVersion = function getExpoSdkVersion() { const expoConstants = _mod868.getExpoConstants(); let manifest; if (null != expoConstants) { manifest = expoConstants.manifest; } let runtimeVersion; if (null !== manifest) { if (undefined !== manifest) { runtimeVersion = manifest.runtimeVersion; } } if (typeof runtimeVersion === "string") { let parts = expoConstants.manifest.runtimeVersion.split(":"); } else { parts = []; } return _slicedToArray(parts, 2)[1]; }; export function isWeb() { return false; } export function notWeb() { return true; } export function isMobileOs() { return true; } export function notMobileOs() { return false; } export const getHermesVersion = function getHermesVersion() { const _HermesInternal = RN_GLOBAL_OBJ.RN_GLOBAL_OBJ.HermesInternal; let getRuntimeProperties; if (null !== _HermesInternal) { if (undefined !== _HermesInternal) { getRuntimeProperties = _HermesInternal.getRuntimeProperties; } } if (null !== getRuntimeProperties) { if (undefined !== getRuntimeProperties) { const call = getRuntimeProperties.call; const prop = typeof call === "unknown" ? getRuntimeProperties() : call(_HermesInternal)["OSS Release Version"]; } } }; export function getDefaultEnvironment() { return "production"; } export const isRunningInMetroDevServer = function isRunningInMetroDevServer() { let tmp3 = undefined !== RN_GLOBAL_OBJ.RN_GLOBAL_OBJ.process; if (tmp3) { const env = RN_GLOBAL_OBJ.RN_GLOBAL_OBJ.process.env; let prop; if (null !== env) { if (undefined !== env) { prop = env.___SENTRY_METRO_DEV_SERVER___; } } tmp3 = "true" === prop; } return tmp3; };