decord/source/modules/rpc/native/SocialRpcNetworkConfigManager.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

43 lines
1.8 KiB
TypeScript

// Module ID: 17824
// Function ID: 17825
// Name: updateSocialRpcNetworkConfig
// Dependencies: [17, 2025, 502, 1242, 1272, 7118, 1115, 2]
// Module 17824 (updateSocialRpcNetworkConfig)
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import set2 from "set" /* 1115 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 1242 */;
import sendRequest from "sendRequest" /* 1272 */;
import initializeDefault from "initialize" /* 7118 */;
import closure_4 from "_getSystemLocale" /* 2025 */;
import closure_5 from "fetchFingerprint" /* 502 */;
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;