Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
39 lines
1.8 KiB
TypeScript
39 lines
1.8 KiB
TypeScript
// Module ID: 17915
|
|
// Function ID: 17916
|
|
// Name: SocialRpcNetworkConfigManager
|
|
// Dependencies: [17, 2025, 502, 1242, 1272, 7170, 1115, 2]
|
|
|
|
// Module 17915 (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" /* 7170 */;
|
|
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;
|