Package.describe({
  name: 'mbanting:reactive-ibeacons',
  summary: "Turns iBeacons into reactive data sources in your Meteor Cordova apps.",
  version: '1.1.0',
  git: "https://github.com/mbanting/meteor-reactive-ibeacons"
});


/**
 * Cordova plugin dependencies
 */
Cordova.depends({
  'com.unarin.cordova.beacon': '3.3.0'
});

Package.onUse(function(api) {
    api.versionsFrom('1.1.0.3');
    api.use(['check', 'tracker', 'underscore']);
    api.addFiles('lib/reactive-ibeacons.js', ["web.cordova"]);
    api.export('ReactiveBeaconRegion', ['web.cordova']);
    api.export('ReactiveBeaconAdvertiser', ['web.cordova']);

});

Package.onTest(function(api) {
    api.use(['tracker']);
    api.use(['tinytest', 'mbanting:reactive-ibeacons']);
    api.addFiles(['tests/client/stubs.js', 'lib/reactive-ibeacons.js'], ["client"]); // tests can run on client, make files available
    api.addFiles('tests/client/reactive-ibeacons-tests.js', 'client');
    api.export('ReactiveBeaconRegion', 'client');
    api.export('ReactiveBeaconAdvertiser', 'client');
});

Package.describe({
  name: 'mbanting:reactive-ibeacons',
  summary: "Turns iBeacons into reactive data sources in your Meteor Cordova apps.",
  version: '1.1.0',
  git: "https://github.com/mbanting/meteor-reactive-ibeacons"
});


/**
 * Cordova plugin dependencies
 */
Cordova.depends({
  'com.unarin.cordova.beacon': '3.3.0'
});

Package.onUse(function(api) {
    api.versionsFrom('1.1.0.3');
    api.use(['check', 'tracker', 'underscore']);
    api.addFiles('lib/reactive-ibeacons.js', ["web.cordova"]);
    api.export('ReactiveBeaconRegion', ['web.cordova']);
    api.export('ReactiveBeaconAdvertiser', ['web.cordova']);

});

Package.onTest(function(api) {
    api.use(['check', 'tracker', 'underscore']);
    api.use(['tinytest', 'mbanting:reactive-ibeacons']);
    api.addFiles(['tests/client/stubs.js', 'lib/reactive-ibeacons.js'], ["client"]); // tests can run on client, make files available
    api.addFiles('tests/client/reactive-ibeacons-tests.js', 'client');
    api.export('ReactiveBeaconRegion', 'client');
    api.export('ReactiveBeaconAdvertiser', 'client');
});

fix missing check package in original tests