"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFeatureGateOverrides = getFeatureGateOverrides; exports.isDebug = isDebug; exports.isInterstitiaLPageEnabled = isInterstitiaLPageEnabled; exports.isLocal = isLocal; exports.isStaging = isStaging; exports.maySkipManifestValidation = maySkipManifestValidation; exports.shouldEnableAnalytics = shouldEnableAnalytics; exports.shouldUseDevServer = shouldUseDevServer; function _getenv() { const data = _interopRequireDefault(require("getenv")); _getenv = function () { return data; }; return data; } function _internal() { const data = require("./internal"); _internal = function () { return data; }; return data; } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function isDebug() { return _getenv().default.boolish('EXPO_DEBUG', false); } function isStaging() { return _getenv().default.boolish('EXPO_STAGING', false); } function isLocal() { return _getenv().default.boolish('EXPO_LOCAL', false); } function getFeatureGateOverrides() { return { enable: _getenv().default.array('EXPO_FG_ENABLE'), disable: _getenv().default.array('EXPO_FG_DISABLE') }; } // TODO: remove this function once all related PRs have landed and there's no chance for conflict function isInterstitiaLPageEnabled() { return true; } function maySkipManifestValidation() { return !!_getenv().default.string('EXPO_SKIP_MANIFEST_VALIDATION_TOKEN'); } /** * Returns true if we should use Metro using its JS APIs via @expo/dev-server (the modern and fast * way), false if we should fall back to spawning it as a subprocess (supported for backwards * compatibility with SDK39 and older). */ function shouldUseDevServer(exp) { return !_internal().Versions.lteSdkVersion(exp, '39.0.0') || _getenv().default.boolish('EXPO_USE_DEV_SERVER', false); } // do not allow E2E to fire events function shouldEnableAnalytics() { return !_getenv().default.boolish('E2E', false) && !_getenv().default.boolish('CI', false); } //# sourceMappingURL=Env.js.map