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

40 lines
1.8 KiB
TypeScript
Raw Normal View History

// Module ID: 18031
// Function ID: 18032
// Name: SocialRpcNetworkConfigManager
// Dependencies: [17, 2026, 502, 1241, 1271, 7228, 1364, 2]
2026-07-20 16:05:17 +00:00
// Module 18031 (SocialRpcNetworkConfigManager)
import _mod17 from "module_17" /* 17 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import HTTPUtils from "HTTPUtils" /* 1271 */;
import PlatformUtils from "PlatformUtils" /* 1364 */;
import LocaleStore from "LocaleStore" /* 2026 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7228 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
function updateSocialRpcNetworkConfig() {
const obj = { "X-Super-Properties": AnalyticsUtilsDefault.getSuperPropertiesBase64(), "X-Fingerprint": AuthenticationStore.getFingerprint(), "X-Installation-ID": AuthenticationStore.getInstallationForTracking(), "X-Discord-Locale": LocaleStore.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;
const obj3 = { apiBaseUrl: HTTPUtils.getAPIBaseURL(), headers: obj };
const result = NativeCacheModule.setItem("socialRpcNetworkRequest", JSON.stringify(obj3));
2026-07-20 16:05:17 +00:00
}
}
const NativeModules = _mod17.NativeModules;
const prototype = function SocialRpcNetworkConfigManager() {
2026-07-29 08:29:29 +00:00
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.handleUpdate = PlatformUtils.isAndroid() ? updateSocialRpcNetworkConfig : (() => {
2026-07-29 08:29:29 +00:00
});
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");
2026-07-20 16:05:17 +00:00
export default prototype1;