Skip to content
Permalink
Browse files
CB-10572 Mobilespec tests not working for OSX
  • Loading branch information
tripodsan committed Feb 11, 2016
1 parent fe36cf5 commit d422861b1127bcca08fb92324711827e5539719f
Showing 2 changed files with 43 additions and 0 deletions.
@@ -61,4 +61,14 @@
<source-file src="src/ios/CDVEcho.m" />
</platform>

<!-- osx -->
<platform name="osx">
<config-file target="config.xml" parent="/*">
<feature name="Echo">
<param name="ios-package" value="CDVEcho"/>
</feature>
</config-file>
<source-file src="src/ios/CDVEcho.m" />
</platform>

</plugin>
@@ -222,6 +222,30 @@ var DEFAULT_PLUGINS = [
'cordova-plugin-whitelist',
];

// OSX has little support for the most of the plugins, so it gets its own default list
var DEFAULT_PLUGINS_OSX = [
//'cordova-plugin-battery-status',
//'cordova-plugin-camera',
//'cordova-plugin-console',
//'cordova-plugin-contacts',
'cordova-plugin-device',
//'cordova-plugin-device-motion',
//'cordova-plugin-device-orientation',
//'cordova-plugin-dialogs',
'cordova-plugin-file',
//'cordova-plugin-file-transfer',
//'cordova-plugin-geolocation',
//'cordova-plugin-globalization',
//'cordova-plugin-inappbrowser',
//'cordova-plugin-media',
//'cordova-plugin-media-capture',
//'cordova-plugin-network-information',
//'cordova-plugin-splashscreen',
//'cordova-plugin-statusbar',
//'cordova-plugin-vibration',
'cordova-plugin-whitelist',
];

// plugin search paths that will override default
var SEARCH_PATHS = {
'org.apache.cordova.mobilespec.tests': mobile_spec_git_dir,
@@ -506,6 +530,15 @@ function pluginIdToDirName(id) {
////////////////////// install plugins for each platform
function installPlugins() {
var plugins = DEFAULT_PLUGINS;

// special override for osx
if (argv.osx) {
if (platforms.length > 1) {
console.warn('Warning: OSX was added as platform to test - adding reduced plugin set due to compatibility problems.');
}
plugins = DEFAULT_PLUGINS_OSX;
}

if (argv.plugins) {
plugins = argv.plugins.split(" ").filter(function (item) {
return item !== "";

0 comments on commit d422861

Please sign in to comment.