decord/source/modules/rpc/native/SocialRpcNetworkConfigManager.tsx

44 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 17167
// Function ID: 17168
2026-07-29 08:29:29 +00:00
// Name: updateSocialRpcNetworkConfig
2026-08-25 06:04:03 +00:00
// Dependencies: [17, 1996, 1218, 698, 530, 5367, 500, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 17167 (updateSocialRpcNetworkConfig)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import set2 from "set" /* 500 */;
import sendRequest from "sendRequest" /* 530 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
2026-08-25 06:04:03 +00:00
import initializeDefault from "initialize" /* 5367 */;
import closure_4 from "_getSystemLocale" /* 1996 */;
2026-08-24 06:08:38 +00:00
import closure_5 from "fetchFingerprint" /* 1218 */;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
function updateSocialRpcNetworkConfig() {
2026-08-24 06:08:38 +00:00
let obj = { "X-Super-Properties": expandEventPropertiesDefault.getSuperPropertiesBase64(), "X-Fingerprint": store.getFingerprint(), "X-Installation-ID": store.getInstallationForTracking(), "X-Discord-Locale": locale.locale };
2026-07-20 16:05:17 +00:00
const NativeCacheModule = NativeModules.NativeCacheModule;
2026-07-29 08:29:29 +00:00
if (NativeCacheModule != null) {
2026-07-20 16:05:17 +00:00
const _JSON = JSON;
2026-07-29 08:29:29 +00:00
obj = { apiBaseUrl: null, headers: null };
2026-08-24 06:08:38 +00:00
obj[0] = sendRequest.getAPIBaseURL();
2026-07-29 08:29:29 +00:00
obj[1] = obj;
2026-07-20 16:05:17 +00:00
const result = NativeCacheModule.setItem("socialRpcNetworkRequest", JSON.stringify(obj));
2026-08-24 06:08:38 +00:00
const obj4 = sendRequest;
2026-07-20 16:05:17 +00:00
}
}
2026-08-24 06:08:38 +00:00
const NativeModules = get_ActivityIndicator.NativeModules;
initializeDefault;
2026-07-29 08:29:29 +00:00
let prototype = function SocialRpcNetworkConfigManager() {
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
2026-08-24 06:08:38 +00:00
applyArgumentsResult.handleUpdate = set2.isAndroid() ? updateSocialRpcNetworkConfig : (() => {
2026-07-29 08:29:29 +00:00
});
applyArgumentsResult.actions = { POST_CONNECTION_OPEN: applyArgumentsResult.handleUpdate };
return applyArgumentsResult;
}.prototype;
class prototype extends tmp2 {
}
prototype = new prototype();
2026-08-24 06:08:38 +00:00
let result = set.fileFinishedImporting("modules/rpc/native/SocialRpcNetworkConfigManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default prototype;