cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject [3/3] spec commit: CB-10572 Mobilespec tests not working for OSX
Date Thu, 11 Feb 2016 17:36:13 GMT
CB-10572 Mobilespec tests not working for OSX


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/d422861b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/d422861b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/d422861b

Branch: refs/heads/master
Commit: d422861b1127bcca08fb92324711827e5539719f
Parents: fe36cf5
Author: Tobias Bocanegra <tripod@adobe.com>
Authored: Tue Feb 9 11:56:20 2016 -0800
Committer: Tobias Bocanegra <tripod@adobe.com>
Committed: Thu Feb 11 09:34:30 2016 -0800

----------------------------------------------------------------------
 cordova-plugin-echo/plugin.xml       | 10 ++++++++++
 createmobilespec/createmobilespec.js | 33 +++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d422861b/cordova-plugin-echo/plugin.xml
----------------------------------------------------------------------
diff --git a/cordova-plugin-echo/plugin.xml b/cordova-plugin-echo/plugin.xml
index 5095307..d175a07 100644
--- a/cordova-plugin-echo/plugin.xml
+++ b/cordova-plugin-echo/plugin.xml
@@ -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>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d422861b/createmobilespec/createmobilespec.js
----------------------------------------------------------------------
diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js
index 99be813..f03f0f5 100755
--- a/createmobilespec/createmobilespec.js
+++ b/createmobilespec/createmobilespec.js
@@ -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 !== "";


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message