decord/source/utils/native/ClientInfoUtils.tsx

36 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// 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 = [];
2026-07-21 06:55:02 +00:00
let str = "6039";
if (items.includes("6039")) {
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-07-21 06:55:02 +00:00
str = "dev (" + "6039" + ")";
2026-07-20 16:05:17 +00:00
}
return str;
};