decord/source/utils/native/ClientInfoUtils.tsx

41 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 1364
// Function ID: 1365
// Name: ClientInfoUtils
// Dependencies: [17, 1115, 1344, 2]
2026-07-20 16:05:17 +00:00
// Exports: getBuildNumberLabel, getConstants
// Module 1364 (ClientInfoUtils)
import _mod17 from "module_17" /* 17 */;
import PlatformUtils from "PlatformUtils" /* 1115 */;
import NativeClientInfoModuleDefault from "NativeClientInfoModule" /* 1344 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const NativeModules = _mod17.NativeModules;
const result = size.fileFinishedImporting("utils/native/ClientInfoUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getConstants = function getConstants() {
if (obj.isAndroid()) {
if (null === NativeClientInfoModuleDefault) {
2026-07-20 16:05:17 +00:00
const _Error = Error;
const error = new Error("Turbo module RTNClientInfoManager is undefined for Android");
2026-07-20 16:05:17 +00:00
throw error;
} else {
return tmp3(1344).getConstants();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp3 = importDefault;
2026-07-20 16:05:17 +00:00
} else {
const InfoDictionaryManager = NativeModules.InfoDictionaryManager;
return InfoDictionaryManager.getConstants();
}
obj = PlatformUtils;
2026-07-20 16:05:17 +00:00
};
export const getBuildNumberLabel = function getBuildNumberLabel() {
2026-07-23 10:11:24 +00:00
const items = ["0", "123456", "1234567890"];
let str = "6399";
if (items.includes("6399")) {
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
str = "dev (" + "6399" + ")";
2026-07-20 16:05:17 +00:00
}
return str;
};