decord/source/utils/native/AppInfoUtils.tsx
2026-07-25 08:10:48 +00:00

25 lines
656 B
TypeScript

// Module ID: 16060
// Function ID: 124288
// Name: getAppMajorVersion
// Dependencies: [1554, 2]
// Exports: getAppMajorVersion
// Module 16060 (getAppMajorVersion)
import getConstants from "getConstants";
getConstants = getConstants.getConstants();
const result = require("set").fileFinishedImporting("utils/native/AppInfoUtils.tsx");
export const getAppMajorVersion = function getAppMajorVersion() {
if (undefined === getConstants) {
return -1;
} else {
const parts = getConstants.Version.split(".");
let num = -1;
if (2 === parts.length) {
const _Number = Number;
num = Number(parts[0]);
}
return num;
}
};