Package.describe({
  name: 'raix:push',
  version: '2.6.13-rc.1',
  summary: 'Isomorphic Push notifications for APN and GCM',
  git: 'https://github.com/raix/push.git'
});

// Server-side push deps
Npm.depends({
  'apn' : '1.6.2', // 1.3.8, 1.4.2
  //'debug': '0.7.3', // DEBUG
  'node-gcm' : '0.9.6' // 0.9.6
});

Cordova.depends({
  // Fix android build with gradle
  'com.phonegap.plugins.PushPlugin': 'https://github.com/blumug/PushPlugin/tarball/d2b3959311098e3a7047fbf4bedf6c8fb63e2f2a'
  // Fix ios 7 and ios in general
  // 'com.phonegap.plugins.PushPlugin': 'https://github.com/raix/PushPlugin/tarball/c4e3aa69c66bde45472e81ac303a9e39020c9cc7'
  // Fix issue 365 ios 7 missing badge updates
  // 'com.phonegap.plugins.PushPlugin': 'https://github.com/raix/PushPlugin/tarball/ff4ade868488ef0fcb014da652681011cd95d8ea'
  // 'com.clone.phonegap.plugins.pushplugin': '2.4.1' //with #354 fixed OK
  //'com.phonegap.plugins.PushPlugin': 'http://github.com/rossmartin/PushPlugin/tarball/6cf2e1a107310e859839fb7a0dc2618a7a199430'
});

Package.registerBuildPlugin({
  name: 'configuration',
  use: [
    'check'
  ],
  sources: [
    'plugin/push.configuration.js'
  ]
});

Package.onUse(function(api) {
  api.versionsFrom('1.0');

  api.use([
    'tracker', // Push.id() is reactive
    'random'   // The push it is created with Random.id()
  ], 'client');

  // Keep track of users in the appCollection
  api.use('accounts-base', ['client', 'server'], { weak: true });

  api.use('raix:cordova@0.2.3', 'client', { weak: true });

  api.use(['raix:eventstate@0.0.2', 'check', 'mongo'], ['client', 'server']);

  api.use('mongo', 'server');

  // Common api
  api.addFiles([
    'lib/common/main.js',
    'lib/common/notifications.js'
  ], ['client', 'server']);

  // API's
  api.addFiles('lib/client/browser.js', 'web.browser');
  api.addFiles('lib/client/cordova.js', 'web.cordova');
  api.addFiles('lib/server/push.api.js', 'server');

  // Unified api
  api.addFiles('lib/client/client.js', 'client');
  api.addFiles('lib/server/server.js', 'server');

  api.export('Push');
  api.export('onNotificationAPN', 'web.cordova');
  api.export('onNotificationGCM', 'web.cordova');

});

@@ -448,48 +448,48 @@
 all/
-d2b3959311098e3a7047fbf4bedf6c8fb63e2f2a
+a8b3d479d4b509d9a638c1c8fa95c85b680a34a4
 '%0A  

use latest push plugin