decord/source/1153_patchAppRegistryRunApplication.js

74 lines
2.2 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1153
// Function ID: 1154
// Name: patchAppRegistryRunApplication
// Dependencies: [1002, 817, 997, 1154]
// Module 1153 (patchAppRegistryRunApplication)
2026-08-24 06:08:38 +00:00
import registerSpanErrorInstrumentation from "registerSpanErrorInstrumentation" /* 817 */;
require = arg1;
2026-07-29 08:29:29 +00:00
const dependencyMap = arg6;
let AppRegistry = "AppRegistry";
function patchAppRegistryRunApplication(arg0) {
const _require = arg0;
2026-08-24 06:08:38 +00:00
AppRegistry = _require(997).ReactNativeLibraries.AppRegistry;
2026-07-29 08:29:29 +00:00
if (AppRegistry) {
_require(1154).fillTyped(AppRegistry, "runApplication", (arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-29 08:29:29 +00:00
return () => {
const items = [...arguments];
const item = lib.forEach((arg0) => arg0());
return lib(...items);
};
});
const tmpResult = _require(1154);
}
}
arg5.INTEGRATION_NAME = "AppRegistry";
arg5.appRegistryIntegration = () => {
2026-08-24 06:08:38 +00:00
closure_0 = [];
2026-07-29 08:29:29 +00:00
return {
name: AppRegistry,
setupOnce() {
if (!obj.isWeb()) {
2026-08-24 06:08:38 +00:00
if (typeof closure_1_3 !== "function") {
2026-07-29 08:29:29 +00:00
HermesBuiltin.throwTypeError();
}
2026-08-24 06:08:38 +00:00
AppRegistry = tmp(tmp2[2]).ReactNativeLibraries.AppRegistry;
2026-07-29 08:29:29 +00:00
if (AppRegistry) {
tmp(tmp2[3]).fillTyped(AppRegistry, "runApplication", (arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-29 08:29:29 +00:00
return () => {
const items = [...arguments];
const item = lib.forEach((arg0) => arg0());
return lib(...items);
};
});
const tmpResult = tmp(tmp2[3]);
}
const tmp4 = lib;
}
},
onRunApplication(onRunApplicationHook) {
let arr = lib;
if (lib.includes(onRunApplicationHook)) {
2026-08-24 06:08:38 +00:00
const debug = lib(closure_1_1[1]).debug;
2026-07-29 08:29:29 +00:00
debug.log("[AppRegistryIntegration] Callback already registered.");
} else {
arr = arr.push(onRunApplicationHook);
}
}
};
};
arg5.patchAppRegistryRunApplication = patchAppRegistryRunApplication;
arg5.getAppRegistryIntegration = () => {
let client = arg0;
if (arg0 === undefined) {
2026-08-24 06:08:38 +00:00
client = registerSpanErrorInstrumentation.getClient();
const obj2 = registerSpanErrorInstrumentation;
2026-07-29 08:29:29 +00:00
}
if (client) {
return client.getIntegrationByName(AppRegistry);
}
};