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
2026-07-23 10:11:24 +00:00
// Function ID: 17594
2026-07-20 16:05:17 +00:00
// Name: getConstants
2026-07-23 10:11:24 +00:00
// Dependencies: [27, 477, 649, 2]
2026-07-20 16:05:17 +00:00
// Exports: getBuildNumberLabel, getConstants
// Module 1554 (getConstants)
2026-07-23 10:11:24 +00:00
import { NativeModules } from "get ActivityIndicator";
const result = require("enforcing").fileFinishedImporting("utils/native/ClientInfoUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getConstants = function getConstants() {
if (obj.isAndroid()) {
2026-07-23 10:11:24 +00:00
if (null === importDefault(649)) {
2026-07-20 16:05:17 +00:00
const _Error = Error;
const error = new Error("Turbo module RTNClientInfoManager is undefined for Android");
throw error;
} else {
2026-07-23 10:11:24 +00:00
return importDefault(649).getConstants();
2026-07-20 16:05:17 +00:00
}
} else {
const InfoDictionaryManager = NativeModules.InfoDictionaryManager;
return InfoDictionaryManager.getConstants();
}
2026-07-23 10:11:24 +00:00
obj = require(477) /* set */;
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 = "6057";
if (items.includes("6057")) {
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-07-23 10:11:24 +00:00
str = "dev (" + "6057" + ")";
2026-07-20 16:05:17 +00:00
}
return str;
};