expo-updates
Version:
Fetches and manages remotely-hosted assets and updates to your app's JS bundle.
16 lines (15 loc) • 639 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const config_plugins_1 = require("expo/config-plugins");
let pkg;
try {
pkg = require('../../package.json');
}
catch { }
// when making changes to this config plugin, ensure the same changes are also made in eas-cli and build-tools
const withUpdates = (config) => {
config = config_plugins_1.AndroidConfig.Updates.withUpdates(config);
config = config_plugins_1.IOSConfig.Updates.withUpdates(config);
return config;
};
exports.default = (0, config_plugins_1.createRunOncePlugin)(withUpdates, pkg?.name || 'expo-updates', pkg?.version || '0.0.0');