2026-08-08 06:10:11 +00:00
|
|
|
// Module ID: 12918
|
|
|
|
|
// Function ID: 12919
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: supportsZstd
|
2026-08-08 06:10:11 +00:00
|
|
|
// Dependencies: [17, 500, 12919, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: createZstdContextWeb, supportsZstd
|
|
|
|
|
|
2026-08-08 06:10:11 +00:00
|
|
|
// Module 12918 (supportsZstd)
|
2026-07-23 10:11:24 +00:00
|
|
|
import { NativeModules } from "get ActivityIndicator";
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = require("enforcing").fileFinishedImporting("modules/gateway/GatewayZstdUtils.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const supportsZstd = function supportsZstd() {
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-08-08 06:10:11 +00:00
|
|
|
let flag = importDefault(12919).getConstants().supportsZstd;
|
|
|
|
|
const obj2 = importDefault(12919);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
const DCDCompressionManager = NativeModules.DCDCompressionManager;
|
2026-07-29 08:29:29 +00:00
|
|
|
flag = undefined;
|
|
|
|
|
if (DCDCompressionManager != null) {
|
|
|
|
|
flag = DCDCompressionManager.supportsZstd;
|
|
|
|
|
}
|
|
|
|
|
if (flag == null) {
|
|
|
|
|
flag = false;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return flag;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const createZstdContextWeb = function createZstdContextWeb() {
|
|
|
|
|
const error = new Error("Attempting to use createZstdContextWeb in a native context. Use MobileGatewayCompressionHandler instead.");
|
|
|
|
|
throw error;
|
|
|
|
|
};
|