decord/source/utils/native/ClientInfoUtils.tsx

41 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 1626
// Function ID: 1627
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-15 05:55:55 +00:00
// Module 1626 (getConstants)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import set2 from "set" /* 500 */;
import enforcingDefault from "enforcing" /* 672 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const NativeModules = get_ActivityIndicator.NativeModules;
const result = set.fileFinishedImporting("utils/native/ClientInfoUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getConstants = function getConstants() {
if (obj.isAndroid()) {
2026-08-24 06:08:38 +00:00
if (null === enforcingDefault) {
2026-07-20 16:05:17 +00:00
const _Error = Error;
2026-08-24 06:08:38 +00:00
error = new Error("Turbo module RTNClientInfoManager is undefined for Android");
2026-07-20 16:05:17 +00:00
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-08-24 06:08:38 +00:00
obj = set2;
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-24 06:08:38 +00:00
let str = "6266";
if (items.includes("6266")) {
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-08-24 06:08:38 +00:00
str = "dev (" + "6266" + ")";
2026-07-20 16:05:17 +00:00
}
return str;
};