1import { ConfigPlugin, createRunOncePlugin, AndroidConfig, IOSConfig } from 'expo/config-plugins';
2
3const pkg = require('expo-updates/package.json');
4
5// when making changes to this config plugin, ensure the same changes are also made in eas-cli and build-tools
6
7const withUpdates: ConfigPlugin = (config) => {
8  config = AndroidConfig.Updates.withUpdates(config);
9  config = IOSConfig.Updates.withUpdates(config);
10  return config;
11};
12
13export default createRunOncePlugin(withUpdates, pkg.name, pkg.version);
14