var ios_script = require('./create_ios_strings');
var android_script = require('./create_android_strings');

module.exports = function (context) {
    var platforms = context.opts.platforms;

    var promises = [];

    if (platforms.indexOf('ios') >= 0) {
        promises.push(ios_script(context));
    }

    if (platforms.indexOf('android') >= 0) {
        promises.push(android_script(context));
    }

    return Promise.all(promises);
};

var android_script = require('./create_android_strings');
var ios_script = require('./create_ios_strings');

module.exports = function (context) {
    var platforms = context.opts.platforms;

    var promises = [];

    if (platforms.indexOf('android') >= 0) {
        promises.push(android_script(context));
    }

    if (platforms.indexOf('ios') >= 0) {
        promises.push(ios_script(context));
    }

    return Promise.all(promises);
};

reorder android_script and ios_script