103 lines
5.5 KiB
React
103 lines
5.5 KiB
React
/* Metro module 1010; source: unknown; dependencies: [57, 27, 825, 1005, 1011] */
|
|
function _fun10634(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1137:6, offset: 0x00d9284d, size: 258 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
|
(require(27) /* metro dependency 27 */).Platform;
|
|
exports.isHermesEnabled = function() {
|
|
return !!require(dependencyMap[2]).RN_GLOBAL_OBJ.HermesInternal;
|
|
};
|
|
exports.isTurboModuleEnabled = isTurboModuleEnabled;
|
|
exports.isFabricEnabled = function() {
|
|
return require(dependencyMap[2]).RN_GLOBAL_OBJ.nativeFabricUIManager != null;
|
|
};
|
|
exports.getReactNativeVersion = getReactNativeVersion;
|
|
exports.isExpo = function() {
|
|
return require(dependencyMap[2]).RN_GLOBAL_OBJ.expo != null;
|
|
};
|
|
exports.isExpoGo = isExpoGo;
|
|
exports.getExpoGoVersion = getExpoGoVersion;
|
|
exports.getExpoSdkVersion = getExpoSdkVersion;
|
|
exports.isWeb = function() {
|
|
return false;
|
|
};
|
|
exports.notWeb = function() {
|
|
return true;
|
|
};
|
|
exports.isMobileOs = function() {
|
|
return true;
|
|
};
|
|
exports.notMobileOs = function() {
|
|
return false;
|
|
};
|
|
exports.getHermesVersion = getHermesVersion;
|
|
exports.getDefaultEnvironment = function() {
|
|
return 'production';
|
|
};
|
|
exports.isRunningInMetroDevServer = isRunningInMetroDevServer;
|
|
}
|
|
|
|
function isTurboModuleEnabled() { // fn#10637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1137:268, offset: 0x00d9297b, size: 83 bytes, params: 1, frame: 13
|
|
const RN_GLOBAL_OBJ = (require(825) /* metro dependency 825 */).RN_GLOBAL_OBJ;
|
|
const RN$Bridgeless = RN_GLOBAL_OBJ.RN$Bridgeless;
|
|
return RN$Bridgeless === true || RN_GLOBAL_OBJ.__turboModuleProxy != null;
|
|
}
|
|
|
|
function getReactNativeVersion() { // fn#10639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1137:523, offset: 0x00d929fb, size: 189 bytes, params: 1, frame: 21
|
|
var version;
|
|
var major;
|
|
var minor;
|
|
var patch;
|
|
var prerelease;
|
|
var value;
|
|
const ReactNativeLibraries = (require(1005) /* metro dependency 1005 */).ReactNativeLibraries;
|
|
const ReactNativeVersion = ReactNativeLibraries.ReactNativeVersion;
|
|
if (ReactNativeVersion) {
|
|
version = ReactNativeLibraries.ReactNativeVersion.version;
|
|
major = version.major;
|
|
minor = version.minor;
|
|
patch = version.patch;
|
|
prerelease = version.prerelease;
|
|
value = '';
|
|
return value + major + '.' + minor + '.' + patch + (prerelease != null ? '-' + version.prerelease : value);
|
|
}
|
|
}
|
|
|
|
function isExpoGo() { // fn#10641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1137:835, offset: 0x00d92ae5, size: 43 bytes, params: 1, frame: 11
|
|
const value = require(1011) /* metro dependency 1011 */;
|
|
const getExpoGo = value.getExpoGo;
|
|
return !!Reflect.apply(getExpoGo, value, []);
|
|
}
|
|
|
|
function getExpoGoVersion() { // fn#10642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1137:903, offset: 0x00d92b10, size: 73 bytes, params: 1, frame: 12
|
|
const value = undefined;
|
|
const expoConstants = (require(1011) /* metro dependency 1011 */).getExpoConstants();
|
|
let expoVersion = expoConstants == null ? value : expoConstants.expoVersion;
|
|
expoVersion = typeof expoVersion !== 'string' ? value : expoConstants.expoVersion;
|
|
return expoVersion;
|
|
}
|
|
|
|
function getExpoSdkVersion() { // fn#10643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1137:1059, offset: 0x00d92b59, size: 135 bytes, params: 1, frame: 15
|
|
const value2 = undefined;
|
|
const expoConstants = (require(1011) /* metro dependency 1011 */).getExpoConstants();
|
|
const manifest = expoConstants == null ? value2 : expoConstants.manifest;
|
|
return env0_2(typeof (manifest === null || value2 === manifest ? value2 : manifest.runtimeVersion) === 'string' ? expoConstants.manifest.runtimeVersion.split(':') : [],
|
|
2)[1];
|
|
}
|
|
|
|
function getHermesVersion() { // fn#10647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1137:1436, offset: 0x00d92be0, size: 90 bytes, params: 1, frame: 13
|
|
const value = undefined;
|
|
const RN_GLOBAL_OBJ = (require(825) /* metro dependency 825 */).RN_GLOBAL_OBJ;
|
|
const HermesInternal = RN_GLOBAL_OBJ.HermesInternal;
|
|
const getRuntimeProperties = HermesInternal === null || value === HermesInternal ? value : HermesInternal.getRuntimeProperties;
|
|
return getRuntimeProperties === null || value === getRuntimeProperties ? value : getRuntimeProperties.call(HermesInternal)['OSS Release Version'];
|
|
}
|
|
|
|
function isRunningInMetroDevServer() { // fn#10649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1137:1738, offset: 0x00d92c40, size: 111 bytes, params: 1, frame: 13
|
|
const value2 = undefined;
|
|
const RN_GLOBAL_OBJ = (require(825) /* metro dependency 825 */).RN_GLOBAL_OBJ;
|
|
return value2 !== RN_GLOBAL_OBJ.process && (RN_GLOBAL_OBJ.process.env === null || value2 === RN_GLOBAL_OBJ.process.env ? value2 : RN_GLOBAL_OBJ.process.env.___SENTRY_METRO_DEV_SERVER___) === 'true';
|
|
}
|
|
|