37 lines
2.9 KiB
TypeScript
37 lines
2.9 KiB
TypeScript
/* Metro module 12526; source: modules/gateway/PrivateChannelHidingExperiment.tsx; dependencies: [1854, 2, 12527] */
|
|
function _fun95446(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12716:6, offset: 0x02146929, size: 279 bytes, params: 8, frame: 20
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-02-private-channel-hiding',
|
|
'kind': 'user', defaultConfig: {'enableObfuscation': false, 'enableIntegrityCheck': false},
|
|
variations: {[1]: {'enableObfuscation': true, 'enableIntegrityCheck': false}, [2]: {'enableObfuscation': true,
|
|
'enableIntegrityCheck': true}, [3]: {'enableObfuscation': false, 'enableIntegrityCheck': false}}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/gateway/PrivateChannelHidingExperiment.tsx');
|
|
const getCachedPrivateChannelObfuscation = (require(12527) /* metro dependency 12527: PrivateChannelHidingExperimentCache */).getCachedPrivateChannelObfuscation;
|
|
exports.getCachedPrivateChannelObfuscation = getCachedPrivateChannelObfuscation;
|
|
const PRIVATE_CHANNEL_OBFUSCATION_KEY = (require(12527) /* metro dependency 12527: PrivateChannelHidingExperimentCache */).PRIVATE_CHANNEL_OBFUSCATION_KEY;
|
|
exports.PRIVATE_CHANNEL_OBFUSCATION_KEY = PRIVATE_CHANNEL_OBFUSCATION_KEY;
|
|
exports.isChannelMetadataObfuscationEnabled = isChannelMetadataObfuscationEnabled;
|
|
exports.useIsChannelMetadataObfuscationEnabled = useIsChannelMetadataObfuscationEnabled;
|
|
exports.isChannelMetadataIntegrityCheckEnabled = isChannelMetadataIntegrityCheckEnabled;
|
|
}
|
|
|
|
function isChannelMetadataObfuscationEnabled(a0) { // fn#95447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12716:677, offset: 0x02146a40, size: 35 bytes, params: 2, frame: 12
|
|
const binding = env0_0;
|
|
const getConfig = binding.getConfig;
|
|
return Reflect.apply(getConfig, binding, [{location: a0}]).enableObfuscation;
|
|
}
|
|
|
|
function useIsChannelMetadataObfuscationEnabled(a0) { // fn#95448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12716:818, offset: 0x02146a63, size: 35 bytes, params: 2, frame: 12
|
|
const binding = env0_0;
|
|
const useConfig = binding.useConfig;
|
|
return Reflect.apply(useConfig, binding, [{location: a0}]).enableObfuscation;
|
|
}
|
|
|
|
function isChannelMetadataIntegrityCheckEnabled(a0) { // fn#95449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12716:962, offset: 0x02146a86, size: 35 bytes, params: 2, frame: 12
|
|
const binding = env0_0;
|
|
const getConfig = binding.getConfig;
|
|
return Reflect.apply(getConfig, binding, [{location: a0}]).enableIntegrityCheck;
|
|
}
|
|
|