{"size": 657, "ext": "js", "max_stars_repo_path": "src/commands/install.js", "max_stars_repo_name": "giautm/exp", "max_stars_repo_stars_event_min_datetime": "2017-03-28T05:37:59.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-16T12:03:15.000Z", "max_issues_repo_path": "src/commands/install.js", "max_issues_repo_name": "giautm/exp", "max_issues_repo_issues_event_min_datetime": "2017-03-27T04:57:56.000Z", "max_issues_repo_issues_event_max_datetime": "2018-09-25T14:39:00.000Z", "max_forks_repo_path": "src/commands/install.js", "max_forks_repo_name": "giautm/exp", "max_forks_repo_forks_event_min_datetime": "2017-05-21T10:37:34.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-05T16:12:28.000Z"}
{"max_stars_count": 433, "max_issues_count": 86, "max_forks_count": 69, "avg_line_length": 22.6551724138, "max_line_length": 95, "alphanum_fraction": 0.5936073059}
/**
 * @flow
 */

import { Android, Simulator } from 'xdl';
import log from '../log';

export default (program: any) => {
  program
    .command('install:ios')
    .description('Install the latest version of Expo Client for iOS on the simulator')
    .asyncAction(async () => {
      if (await Simulator.upgradeExpoAsync()) {
        log('Done!');
      }
    }, true);

  program
    .command('install:android')
    .description(
      'Install the latest version of Expo Client for Android on a connected device or emulator'
    )
    .asyncAction(async () => {
      if (await Android.upgradeExpoAsync()) {
        log('Done!');
      }
    }, true);
};
