30 lines
1.5 KiB
TypeScript
30 lines
1.5 KiB
TypeScript
/* Metro module 15676; source: utils/native/AppInfoUtils.tsx; dependencies: [1582, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ClientInfoUtilsModule from './ClientInfoUtils.tsx'; /* Metro dependency 1582 */
|
|
|
|
function _fun120244(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15884:6, offset: 0x0252583f, size: 113 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = (ClientInfoUtilsModule).getConstants();
|
|
(FileImportTrackerModule).fileFinishedImporting('utils/native/AppInfoUtils.tsx');
|
|
exports.getAppMajorVersion = getAppMajorVersion;
|
|
function getAppMajorVersion() { // fn#120245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15884:205, offset: 0x025258b0, size: 84 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var value;
|
|
if (env0_0 === undefined) {
|
|
return -1;
|
|
}
|
|
const Version = env0_0.Version;
|
|
if (Version.split('.').length !== 2) {
|
|
r0 = -1;
|
|
} else {
|
|
value = global.Number(value[0]);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun120244, 15676, [1582, 2]) /* metro module 15676, dependencies: [1582, 2] */;
|