decord/source/modules/mobile_native_updater/MobileNativeUpdateUtils.tsx

47 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 13021
// Function ID: 100836
2026-07-20 16:05:17 +00:00
// Name: _checkForNewerBuild
2026-07-28 08:39:19 +00:00
// Dependencies: [5, 4147, 3, 507, 3862, 477, 668, 2]
2026-07-20 16:05:17 +00:00
// Exports: checkForNewerBuild, openBuildInstaller
2026-07-28 08:39:19 +00:00
// Module 13021 (_checkForNewerBuild)
2026-07-23 10:11:24 +00:00
import set from "set";
import { UPDATE_CONFIG } from "currentUpdateConfig";
import importDefaultResult from "_isNativeReflectConstruct";
const require = arg1;
2026-07-20 16:05:17 +00:00
function _checkForNewerBuild() {
// CreateGeneratorClosureLongIndex (0x67)
const obj = callback(tmp);
return obj(...arguments);
}
function openBuildInstallerUrl(install) {
const uRL = new URL(install);
let origin;
if (null != UPDATE_CONFIG) {
origin = UPDATE_CONFIG.url.origin;
}
if (uRL.origin !== origin) {
const _HermesInternal = HermesInternal;
importDefaultResult.error("Attempted to follow invalid install URL " + str);
} else {
2026-07-28 08:39:19 +00:00
const openURLExternally = require(3862).default.openURLExternally;
2026-07-20 16:05:17 +00:00
if (obj.isIOS()) {
2026-07-23 10:11:24 +00:00
openURLExternally(str.toString(), require(668) /* keys */.WebBrowserType.SAFARI);
2026-07-20 16:05:17 +00:00
} else {
openURLExternally(str.toString());
}
2026-07-23 10:11:24 +00:00
obj = require(477) /* set */;
2026-07-20 16:05:17 +00:00
}
}
importDefaultResult = new importDefaultResult("MobileNativeUpdateUtils");
2026-07-23 10:11:24 +00:00
const result = require("timestamp").fileFinishedImporting("modules/mobile_native_updater/MobileNativeUpdateUtils.tsx");
2026-07-20 16:05:17 +00:00
export const checkForNewerBuild = function checkForNewerBuild() {
return _checkForNewerBuild(...arguments);
};
export const openBuildInstaller = function openBuildInstaller(newBuild) {
openBuildInstallerUrl(newBuild.urls.install);
};
export { openBuildInstallerUrl };