decord/source/utils/native/ClientInfoUtils.tsx
2026-07-20 17:37:48 +00:00

35 lines
1.1 KiB
TypeScript

// Module ID: 1554
// Function ID: 17588
// Name: getConstants
// Dependencies: []
// Exports: getBuildNumberLabel, getConstants
// Module 1554 (getConstants)
const NativeModules = require(dependencyMap[0]).NativeModules;
const _module = require(dependencyMap[3]);
const result = _module.fileFinishedImporting("utils/native/ClientInfoUtils.tsx");
export const getConstants = function getConstants() {
if (obj.isAndroid()) {
if (null === importDefault(dependencyMap[2])) {
const _Error = Error;
const error = new Error("Turbo module RTNClientInfoManager is undefined for Android");
throw error;
} else {
return importDefault(dependencyMap[2]).getConstants();
}
} else {
const InfoDictionaryManager = NativeModules.InfoDictionaryManager;
return InfoDictionaryManager.getConstants();
}
const obj = require(dependencyMap[1]);
};
export const getBuildNumberLabel = function getBuildNumberLabel() {
const items = [];
let str = "6028";
if (items.includes("6028")) {
const _HermesInternal = HermesInternal;
str = "dev (" + "6028" + ")";
}
return str;
};