decord/source/utils/native/AppInfoUtils.tsx

26 lines
656 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 16060
// Function ID: 124288
2026-07-20 16:05:17 +00:00
// Name: getAppMajorVersion
2026-07-23 10:11:24 +00:00
// Dependencies: [1554, 2]
2026-07-20 16:05:17 +00:00
// Exports: getAppMajorVersion
2026-07-25 08:10:48 +00:00
// Module 16060 (getAppMajorVersion)
2026-07-23 10:11:24 +00:00
import getConstants from "getConstants";
getConstants = getConstants.getConstants();
const result = require("set").fileFinishedImporting("utils/native/AppInfoUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getAppMajorVersion = function getAppMajorVersion() {
2026-07-23 10:11:24 +00:00
if (undefined === getConstants) {
2026-07-20 16:05:17 +00:00
return -1;
} else {
2026-07-23 10:11:24 +00:00
const parts = getConstants.Version.split(".");
2026-07-20 16:05:17 +00:00
let num = -1;
if (2 === parts.length) {
const _Number = Number;
num = Number(parts[0]);
}
return num;
}
};