decord/source/1129_patchAppRegistryRunApplication.js

55 lines
1.6 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1129
2026-07-25 08:10:48 +00:00
// Function ID: 12900
2026-07-20 16:05:17 +00:00
// Name: patchAppRegistryRunApplication
2026-07-23 10:11:24 +00:00
// Dependencies: [978, 794, 973, 1130]
2026-07-20 16:05:17 +00:00
// Module 1129 (patchAppRegistryRunApplication)
2026-07-23 10:11:24 +00:00
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
function patchAppRegistryRunApplication(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
const AppRegistry = _require(973).ReactNativeLibraries.AppRegistry;
2026-07-20 16:05:17 +00:00
if (AppRegistry) {
2026-07-23 10:11:24 +00:00
_require(1130).fillTyped(AppRegistry, "runApplication", (arg0) => {
let closure_0 = arg0;
return () => {
const item = lib.forEach((arg0) => arg0());
return lib(...arguments);
};
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const obj = _require(1130);
2026-07-20 16:05:17 +00:00
}
}
arg5.INTEGRATION_NAME = "AppRegistry";
arg5.appRegistryIntegration = function appRegistryIntegration() {
let closure_0 = [];
return {
name: "AppRegistry",
setupOnce() {
if (!obj.isWeb()) {
2026-07-23 10:11:24 +00:00
outer1_2(arr);
2026-07-20 16:05:17 +00:00
}
},
onRunApplication(onRunApplicationHook) {
if (arr.includes(onRunApplicationHook)) {
2026-07-23 10:11:24 +00:00
const debug = arr(outer1_1[1]).debug;
2026-07-20 16:05:17 +00:00
debug.log("[AppRegistryIntegration] Callback already registered.");
} else {
2026-07-23 10:11:24 +00:00
arr = arr.push(onRunApplicationHook);
2026-07-20 16:05:17 +00:00
}
}
};
};
arg5.patchAppRegistryRunApplication = patchAppRegistryRunApplication;
arg5.getAppRegistryIntegration = function getAppRegistryIntegration(client) {
if (arguments.length > 0) {
if (undefined !== arguments[0]) {
let first = arguments[0];
}
if (first) {
return first.getIntegrationByName("AppRegistry");
}
}
2026-07-23 10:11:24 +00:00
first = require(794) /* registerSpanErrorInstrumentation */.getClient();
2026-07-20 16:05:17 +00:00
};