44 lines
2.2 KiB
JavaScript
44 lines
2.2 KiB
JavaScript
/* Metro module 903; source: unknown; dependencies: [832, 833, 857] */
|
|
import * as Module00857Module from './module-00857.js'; /* Metro dependency 857 */
|
|
|
|
function _fun9722(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1030:6, offset: 0x00d7061d, size: 93 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const setCurrentClient2 = setCurrentClient;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.initAndBind = initAndBind;
|
|
exports.setCurrentClient = setCurrentClient2;
|
|
function setCurrentClient(a0) { // fn#9723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1030:30, offset: 0x00d7067a, size: 51 bytes, params: 2, frame: 12
|
|
let value = Module00857Module;
|
|
value = value.getCurrentScope();
|
|
value.setClient(a0);
|
|
}
|
|
|
|
function initAndBind(a0, a1) { // fn#9724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1030:173, offset: 0x00d706ad, size: 203 bytes, params: 3, frame: 15
|
|
var value;
|
|
var DEBUG_BUILD;
|
|
if (a1.debug === true) {
|
|
DEBUG_BUILD = (require(832) /* metro dependency 832 */).DEBUG_BUILD;
|
|
value = require(833) /* metro dependency 833 */;
|
|
if (DEBUG_BUILD) {
|
|
value.debug.enable();
|
|
} else {
|
|
value.consoleSandbox(function() {
|
|
global.console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');
|
|
});
|
|
}
|
|
}
|
|
const currentScope = (Module00857Module).getCurrentScope();
|
|
currentScope.update(a1.initialScope);
|
|
const value4 = new a0(a1);
|
|
setCurrentClient(value4);
|
|
value4.init();
|
|
return value4;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun9722, 903, [832, 833, 857]) /* metro module 903, dependencies: [832, 833, 857] */;
|