decord/source/utils/native/ClientInfoUtils.tsx

37 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 1606
// Function ID: 1607
2026-07-20 16:05:17 +00:00
// Name: getConstants
2026-07-29 08:29:29 +00:00
// Dependencies: [17, 500, 672, 2]
2026-07-20 16:05:17 +00:00
// Exports: getBuildNumberLabel, getConstants
2026-08-06 08:05:19 +00:00
// Module 1606 (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-29 08:29:29 +00:00
if (null === importDefault(672)) {
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-29 08:29:29 +00:00
return tmp3(672).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();
}
2026-07-29 08:29:29 +00:00
obj = require(500) /* 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"];
2026-08-08 06:10:11 +00:00
let str = "6187";
if (items.includes("6187")) {
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-08-08 06:10:11 +00:00
str = "dev (" + "6187" + ")";
2026-07-20 16:05:17 +00:00
}
return str;
};