33 lines
1.5 KiB
React
33 lines
1.5 KiB
React
/* Metro module 7431; source: unknown; dependencies: [7397, 7369, 7396] */
|
|
function _fun59963(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7609:6, offset: 0x016f814f, size: 81 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const closure = setCurrentClient_59964;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.initAndBind = initAndBind_59965;
|
|
exports.setCurrentClient = closure;
|
|
}
|
|
|
|
function initAndBind_59965(a0, a1) { // fn#59965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7609:161, offset: 0x016f81a0, size: 203 bytes, params: 3, frame: 15
|
|
var value;
|
|
var DEBUG_BUILD;
|
|
if (a1.debug === true) {
|
|
DEBUG_BUILD = (require(7397) /* metro dependency 7397 */).DEBUG_BUILD;
|
|
value = require(7369) /* metro dependency 7369 */;
|
|
if (DEBUG_BUILD) {
|
|
value.logger.enable();
|
|
} else {
|
|
value.consoleSandbox(function() {
|
|
global.console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');
|
|
});
|
|
}
|
|
}
|
|
const currentScope = (require(7396) /* metro dependency 7396 */).getCurrentScope();
|
|
currentScope.update(a1.initialScope);
|
|
const value4 = new a0(a1);
|
|
setCurrentClient_59964(value4);
|
|
value4.init();
|
|
return value4;
|
|
}
|
|
|