decord/source/modules/rpc/native/SocialRpcNetworkConfigManager.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

43 lines
1.8 KiB
TypeScript

// Module ID: 17741
// Function ID: 17742
// Name: updateSocialRpcNetworkConfig
// Dependencies: [17, 1995, 1215, 695, 527, 7058, 1234, 2]
// Module 17741 (updateSocialRpcNetworkConfig)
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import sendRequest from "sendRequest" /* 527 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 695 */;
import set2 from "set" /* 1234 */;
import initializeDefault from "initialize" /* 7058 */;
import closure_4 from "_getSystemLocale" /* 1995 */;
import closure_5 from "fetchFingerprint" /* 1215 */;
function updateSocialRpcNetworkConfig() {
let obj = { "X-Super-Properties": expandEventPropertiesDefault.getSuperPropertiesBase64(), "X-Fingerprint": store.getFingerprint(), "X-Installation-ID": store.getInstallationForTracking(), "X-Discord-Locale": locale.locale };
const NativeCacheModule = NativeModules.NativeCacheModule;
if (NativeCacheModule != null) {
const _JSON = JSON;
obj = { apiBaseUrl: null, headers: null };
obj[0] = sendRequest.getAPIBaseURL();
obj[1] = obj;
const result = NativeCacheModule.setItem("socialRpcNetworkRequest", JSON.stringify(obj));
const obj4 = sendRequest;
}
}
const NativeModules = get_ActivityIndicator.NativeModules;
initializeDefault;
let prototype = function SocialRpcNetworkConfigManager() {
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.handleUpdate = set2.isAndroid() ? updateSocialRpcNetworkConfig : (() => {
});
applyArgumentsResult.actions = { POST_CONNECTION_OPEN: applyArgumentsResult.handleUpdate };
return applyArgumentsResult;
}.prototype;
class prototype extends tmp2 {
}
prototype = new prototype();
let result = set.fileFinishedImporting("modules/rpc/native/SocialRpcNetworkConfigManager.tsx");
export default prototype;