1"use strict"; 2Object.defineProperty(exports, "__esModule", { value: true }); 3const config_1 = require("@expo/config"); 4const config_plugins_1 = require("expo/config-plugins"); 5const pkg = require('expo-updates/package.json'); 6// when making changes to this config plugin, ensure the same changes are also made in eas-cli and build-tools 7const withUpdates = (config, props = {}) => { 8 // The username will be passed from the CLI when the plugin is automatically used. 9 const expoUsername = (props || {}).expoUsername ?? (0, config_1.getAccountUsername)(config); 10 config = config_plugins_1.AndroidConfig.Updates.withUpdates(config, { expoUsername }); 11 config = config_plugins_1.IOSConfig.Updates.withUpdates(config, { expoUsername }); 12 return config; 13}; 14exports.default = (0, config_plugins_1.createRunOncePlugin)(withUpdates, pkg.name, pkg.version); 15