Package.describe({
  summary: "Update the client when new client code is available",
  version: '1.2.2-plugins.0'
});

Cordova.depends({
    'cordova-plugin-file': '2.0.0',
    'cordova-plugin-file-transfer': '1.0.0'
});

Package.onUse(function (api) {
  api.use([
    'webapp',
    'check'
  ], 'server');

  api.use([
    'tracker',
    'retry'
  ], 'client');

  api.use([
    'ddp',
    'mongo',
    'underscore'
  ], ['client', 'server']);

  api.use('reload', 'client', {weak: true});

  api.use(['http', 'random'], 'web.cordova');
  
  api.addFiles('autoupdate_server.js', 'server');
  api.addFiles('autoupdate_client.js', 'web.browser');
  api.addFiles('autoupdate_cordova.js', 'web.cordova');

  api.export('Autoupdate');
});

Package.describe({
  summary: "Update the client when new client code is available",
  version: '1.2.2-plugins.0'
});

Cordova.depends({
    'cordova-plugin-file': '2.0.0',
    'cordova-plugin-file-transfer': '1.0.0'
});

Package.onUse(function (api) {
  api.use([
    'webapp',
    'check'
  ], 'server');

  api.use([
    'tracker',
    'retry'
  ], 'client');

  api.use([
    'ddp',
    'mongo',
    'underscore'
  ], ['client', 'server']);

  api.use('reload', 'client');

  api.use(['http', 'random'], 'web.cordova');

  api.addFiles('autoupdate_server.js', 'server');
  api.addFiles('autoupdate_client.js', 'web.browser');
  api.addFiles('autoupdate_cordova.js', 'web.cordova');

  api.export('Autoupdate');
});

Make autoupdate depend on reload, which makes sense
Make autoupdate depend on reload, which makes sense

Since it actually calls reload
