decord/source/modules/rpc/native/SocialRpcNetworkConfigManager.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

39 lines
1.8 KiB
TypeScript

// Module ID: 17906
// Function ID: 17907
// Name: SocialRpcNetworkConfigManager
// Dependencies: [17, 2025, 502, 1242, 1272, 7191, 1115, 2]
// Module 17906 (SocialRpcNetworkConfigManager)
import _mod17 from "module_17" /* 17 */;
import PlatformUtils from "PlatformUtils" /* 1115 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import HTTPUtils from "HTTPUtils" /* 1272 */;
import LocaleStore from "LocaleStore" /* 2025 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7191 */;
import size from "module_2" /* 2 */;
function updateSocialRpcNetworkConfig() {
const obj = { "X-Super-Properties": AnalyticsUtilsDefault.getSuperPropertiesBase64(), "X-Fingerprint": AuthenticationStore.getFingerprint(), "X-Installation-ID": AuthenticationStore.getInstallationForTracking(), "X-Discord-Locale": LocaleStore.locale };
const NativeCacheModule = NativeModules.NativeCacheModule;
if (NativeCacheModule != null) {
const _JSON = JSON;
const obj3 = { apiBaseUrl: HTTPUtils.getAPIBaseURL(), headers: obj };
const result = NativeCacheModule.setItem("socialRpcNetworkRequest", JSON.stringify(obj3));
}
}
const NativeModules = _mod17.NativeModules;
const prototype = function SocialRpcNetworkConfigManager() {
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.handleUpdate = PlatformUtils.isAndroid() ? updateSocialRpcNetworkConfig : (() => {
});
applyArgumentsResult.actions = { POST_CONNECTION_OPEN: applyArgumentsResult.handleUpdate };
return applyArgumentsResult;
}.prototype;
class prototype extends tmp2 {
}
const prototype1 = new prototype();
let result = size.fileFinishedImporting("modules/rpc/native/SocialRpcNetworkConfigManager.tsx");
export default prototype1;