36 lines
2.1 KiB
TypeScript
36 lines
2.1 KiB
TypeScript
/* Metro module 12506; source: modules/gateway/GatewayZstdUtils.native.tsx; dependencies: [27, 477, 12507, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as PlatformUtilsModule from '../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
|
|
|
|
function _fun95331(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12696:6, offset: 0x02139027, size: 137 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/gateway/GatewayZstdUtils.native.tsx');
|
|
exports.supportsZstd = supportsZstd;
|
|
exports.createZstdContextWeb = function() {
|
|
var Error = global.Error;
|
|
throw new Error('Attempting to use createZstdContextWeb in a native context. Use MobileGatewayCompressionHandler instead.');
|
|
};
|
|
function supportsZstd() { // fn#95332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12696:212, offset: 0x021390b0, size: 115 bytes, params: 1, frame: 14
|
|
var supportsZstd;
|
|
var r0;
|
|
var DCDCompressionManager;
|
|
var value;
|
|
const value2 = undefined;
|
|
if (PlatformUtilsModule.isAndroid()) {
|
|
value = importDefault(12507) /* metro dependency 12507: NativeCompressionModule */;
|
|
r0 = value.getConstants().supportsZstd;
|
|
} else {
|
|
DCDCompressionManager = NativeModules.DCDCompressionManager;
|
|
supportsZstd = DCDCompressionManager == null ? value2 : DCDCompressionManager.supportsZstd;
|
|
r0 = supportsZstd != null && supportsZstd;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun95331, 12506, [27, 477, 12507, 2]) /* metro module 12506, dependencies: [27, 477, 12507, 2] */;
|