decord/source/actions/native/BundleUpdaterActionCreators.tsx

44 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 17241
// Function ID: 17242
// Dependencies: [17, 4744, 1236, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 17241
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import setDefault from "set" /* 4744 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const NativeModules = get_ActivityIndicator.NativeModules;
2026-07-23 10:11:24 +00:00
let c4 = false;
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("actions/native/BundleUpdaterActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
prepareUpdate(versionRequired) {
if (versionRequired) {
2026-08-24 06:08:38 +00:00
let obj = setDefault;
2026-07-29 08:29:29 +00:00
obj = { title: null, body: null, confirmText: null, cancelText: null, onConfirm: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t.GQZdmI);
const intl2 = getSystemLocale.intl;
obj[1] = intl2.string(getSystemLocale.t.Fizu9y);
const intl3 = getSystemLocale.intl;
obj[2] = intl3.string(getSystemLocale.t.UefCDS);
const intl4 = getSystemLocale.intl;
obj[3] = intl4.string(getSystemLocale.t["1SzcG6"]);
2026-07-29 08:29:29 +00:00
obj[4] = function onConfirm() {
BundleUpdaterManager = BundleUpdaterManager.BundleUpdaterManager;
2026-07-20 16:05:17 +00:00
return BundleUpdaterManager.reload();
};
obj.show(obj);
2026-08-24 06:08:38 +00:00
c4 = true;
2026-07-20 16:05:17 +00:00
}
},
deferUpdate() {
2026-07-23 10:11:24 +00:00
if (c4) {
c4 = false;
2026-07-20 16:05:17 +00:00
const BundleUpdaterManager = NativeModules.BundleUpdaterManager;
BundleUpdaterManager.reload();
}
}
};