var path = require('path');

module.exports = exports = function defaultConfig(ccaRoot) {
  return {
    plugin_search_path: [
        path.join(ccaRoot, 'cordova'),
        path.join(ccaRoot, 'cordova', 'cordova-plugins'),
        path.join(ccaRoot, 'chrome-cordova', 'plugins'),
        ],
    lib: {
      android: {
        url: path.join(ccaRoot, 'cordova', 'cordova-android')
      },
      ios: {
        url: path.join(ccaRoot, 'cordova', 'cordova-ios')
      }
    }
  };
};

var path = require('path');

module.exports = exports = function defaultConfig(ccaRoot) {
  return {
    plugin_search_path: [
        path.join(ccaRoot, 'cordova'),
        path.join(ccaRoot, 'cordova', 'cordova-plugins'),
        path.join(ccaRoot, 'chrome-cordova', 'plugins'),
        ],
    lib: {
      android: {
        // TODO: Remove uri here and below after cordova-lib@0.21.7 is released.
        uri: path.join(ccaRoot, 'cordova', 'cordova-android'),
        url: path.join(ccaRoot, 'cordova', 'cordova-android')
      },
      ios: {
        uri: path.join(ccaRoot, 'cordova', 'cordova-ios'),
        url: path.join(ccaRoot, 'cordova', 'cordova-ios')
      }
    }
  };
};

Set both url and uri in config for cordova create
Set both url and uri in config for cordova create

With changes related to CB-6776 cordova now expects the urls for custom
platform files to be called url rather than uri. Setting both here
so that the current released version of cordova-lib and the future ones
can both use it. Should remove the uri once we release the next version
of lib.
