UNPKG

@appzung/react-native-code-push

Version:

React Native plugin for the CodePush service

30 lines (29 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UpdateState = void 0; var _NativeRNAppZungCodePushModule = require("../internals/NativeRNAppZungCodePushModule.js"); /** * Indicates the state that an update is currently in. */ let UpdateState = exports.UpdateState = function (UpdateState) { /** * Indicates that an update represents the version of the app that is currently running. * * This can be useful for identifying attributes about the app, for scenarios such as displaying the release description in a "what's new?" dialog or reporting the latest version to an analytics and/or crash reporting service. */ UpdateState[UpdateState["RUNNING"] = _NativeRNAppZungCodePushModule.NativeRNAppZungCodePushModule.getConstants().codePushUpdateStateRunning] = "RUNNING"; /** * Indicates than an update has been installed, but the app hasn't been restarted yet in order to apply it. * * This can be useful for determining whether there is a pending update, which you may want to force a programmatic restart (via `restartApp`) in order to apply. */ UpdateState[UpdateState["PENDING"] = _NativeRNAppZungCodePushModule.NativeRNAppZungCodePushModule.getConstants().codePushUpdateStatePending] = "PENDING"; /** * Indicates than an update represents the latest available release, and can be either currently running or pending. */ UpdateState[UpdateState["LATEST"] = _NativeRNAppZungCodePushModule.NativeRNAppZungCodePushModule.getConstants().codePushUpdateStateLatest] = "LATEST"; return UpdateState; }({}); //# sourceMappingURL=UpdateState.enum.js.map