#!/usr/bin/env node

//this hook installs all your plugins

// add your plugins to this list--either
// the identifier, the filesystem location
// or the URL
var pluginlist = [
    "cordova-plugin-whitelist",
    "com.phonegap.plugins.barcodescanner",
    "net.yoik.cordova.plugins.screenorientation",
    "org.apache.cordova.dialogs",
    "cordova-plugin-splashscreen"
];

// no need to configure below

var fs = require('fs');
var path = require('path');
var sys = require('sys');
var exec = require('child_process').exec;

function puts(error, stdout, stderr) {
    sys.puts(stdout)
}

pluginlist.forEach(function(plug) {
    exec("cordova plugin add " + plug, puts);
});
#!/usr/bin/env node

//this hook installs all your plugins

// add your plugins to this list--either
// the identifier, the filesystem location
// or the URL
var pluginlist = [
    "cordova-plugin-whitelist",
    "phonegap-plugin-barcodescanner",
    "cordova-plugin-screen-orientation",
    "cordova-plugin-dialogs",
    "cordova-plugin-splashscreen"
];

// no need to configure below

var fs = require('fs');
var path = require('path');
var sys = require('sys');
var exec = require('child_process').exec;

function puts(error, stdout, stderr) {
    sys.puts(stdout)
}

pluginlist.forEach(function(plug) {
    exec("cordova plugin add " + plug, puts);
});
update plugins to latest version.