31 lines
1,021 B
TypeScript
31 lines
1,021 B
TypeScript
// Module ID: 12918
|
|
// Function ID: 12919
|
|
// Name: supportsZstd
|
|
// Dependencies: [17, 500, 12919, 2]
|
|
// Exports: createZstdContextWeb, supportsZstd
|
|
|
|
// Module 12918 (supportsZstd)
|
|
import { NativeModules } from "get ActivityIndicator";
|
|
|
|
const result = require("enforcing").fileFinishedImporting("modules/gateway/GatewayZstdUtils.native.tsx");
|
|
|
|
export const supportsZstd = function supportsZstd() {
|
|
if (obj.isAndroid()) {
|
|
let flag = importDefault(12919).getConstants().supportsZstd;
|
|
const obj2 = importDefault(12919);
|
|
} else {
|
|
const DCDCompressionManager = NativeModules.DCDCompressionManager;
|
|
flag = undefined;
|
|
if (DCDCompressionManager != null) {
|
|
flag = DCDCompressionManager.supportsZstd;
|
|
}
|
|
if (flag == null) {
|
|
flag = false;
|
|
}
|
|
}
|
|
return flag;
|
|
};
|
|
export const createZstdContextWeb = function createZstdContextWeb() {
|
|
const error = new Error("Attempting to use createZstdContextWeb in a native context. Use MobileGatewayCompressionHandler instead.");
|
|
throw error;
|
|
};
|