25 lines
646 B
TypeScript
25 lines
646 B
TypeScript
// Module ID: 16146
|
|
// Function ID: 16147
|
|
// Name: getAppMajorVersion
|
|
// Dependencies: [1578, 2]
|
|
// Exports: getAppMajorVersion
|
|
|
|
// Module 16146 (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 = tmp.Version.split(".");
|
|
let num = -1;
|
|
if (2 === parts.length) {
|
|
const _Number = Number;
|
|
num = Number(parts[0]);
|
|
}
|
|
return num;
|
|
}
|
|
};
|