decord/beta/source/utils/native/AppInfoUtils.tsx

28 lines
693 B
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 17471
// Function ID: 17472
2026-10-01 14:13:23 +00:00
// Name: react-native
2026-10-07 22:43:51 +00:00
// Dependencies: [1368, 2]
// Exports: getAppMajorVersion
2026-10-07 22:43:51 +00:00
// Module 17471 (react-native)
import react_native from "react-native" /* 1368 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
const constants = react_native.getConstants();
const result = size.fileFinishedImporting("utils/native/AppInfoUtils.tsx");
export const getAppMajorVersion = function getAppMajorVersion() {
if (undefined === closure_0) {
return -1;
} else {
2026-10-01 14:13:23 +00:00
const str = tmp.Version;
const parts = str.split(".");
let num = -1;
if (2 === parts.length) {
const _Number = Number;
num = Number(parts[0]);
}
return num;
}
};