cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [22/50] js commit: [all] modulemapper refactor for capture.
Date Tue, 12 Feb 2013 19:33:07 GMT
[all] modulemapper refactor for capture.

https://issues.apache.org/jira/browse/CB-2227


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/06cb69fa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/06cb69fa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/06cb69fa

Branch: refs/heads/symbolmapping
Commit: 06cb69fac891bccd27c1d7a22816ac2f281304a4
Parents: fdf89aa
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Jan 24 16:26:03 2013 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Feb 12 13:44:49 2013 -0500

----------------------------------------------------------------------
 lib/bada/platform.js                   |    3 --
 lib/bada/plugin/capture/symbols.js     |   31 +++++++++++++++++++++++++++
 lib/common/common.js                   |   28 ------------------------
 lib/common/plugin/capture/symbols.js   |   30 ++++++++++++++++++++++++++
 lib/windows8/platform.js               |   12 ----------
 lib/windows8/plugin/capture/symbols.js |   31 +++++++++++++++++++++++++++
 lib/windowsphone/platform.js           |    7 ------
 7 files changed, 92 insertions(+), 50 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/06cb69fa/lib/bada/platform.js
----------------------------------------------------------------------
diff --git a/lib/bada/platform.js b/lib/bada/platform.js
index 8316c7b..b980fe4 100644
--- a/lib/bada/platform.js
+++ b/lib/bada/platform.js
@@ -44,9 +44,6 @@ module.exports = {
             children: {
                 device: {
                     path: "cordova/plugin/bada/device"
-                },
-                capture: {
-                    path: "cordova/plugin/bada/Capture"
                 }
             }
         }

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/06cb69fa/lib/bada/plugin/capture/symbols.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/capture/symbols.js b/lib/bada/plugin/capture/symbols.js
new file mode 100644
index 0000000..e90fcec
--- /dev/null
+++ b/lib/bada/plugin/capture/symbols.js
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var modulemapper = require('cordova/modulemapper');
+
+modulemapper.clobbers('cordova/plugin/CaptureError', 'CaptureError');
+modulemapper.clobbers('cordova/plugin/CaptureAudioOptions', 'CaptureAudioOptions');
+modulemapper.clobbers('cordova/plugin/CaptureImageOptions', 'CaptureImageOptions');
+modulemapper.clobbers('cordova/plugin/CaptureVideoOptions', 'CaptureVideoOptions');
+modulemapper.clobbers('cordova/plugin/MediaFile', 'MediaFile');
+modulemapper.clobbers('cordova/plugin/MediaFileData', 'MediaFileData');
+modulemapper.clobbers('cordova/plugin/capture', 'navigator.device.capture');
+
+modulemapper.merges('cordova/plugin/bada/Capture', 'navigator.capture');

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/06cb69fa/lib/common/common.js
----------------------------------------------------------------------
diff --git a/lib/common/common.js b/lib/common/common.js
index 37dda9d..3a5c11b 100644
--- a/lib/common/common.js
+++ b/lib/common/common.js
@@ -53,13 +53,6 @@ module.exports = {
                 contacts: {
                     path: 'cordova/plugin/contacts'
                 },
-                device:{
-                    children:{
-                        capture: {
-                            path: 'cordova/plugin/capture'
-                        }
-                    }
-                },
                 geolocation: {
                     path: 'cordova/plugin/geolocation'
                 },
@@ -79,27 +72,12 @@ module.exports = {
                 }
             }
         },
-        CaptureError: {
-            path: 'cordova/plugin/CaptureError'
-        },
-        CaptureAudioOptions:{
-            path: 'cordova/plugin/CaptureAudioOptions'
-        },
-        CaptureImageOptions: {
-            path: 'cordova/plugin/CaptureImageOptions'
-        },
-        CaptureVideoOptions: {
-            path: 'cordova/plugin/CaptureVideoOptions'
-        },
         CompassHeading:{
             path: 'cordova/plugin/CompassHeading'
         },
         CompassError:{
             path: 'cordova/plugin/CompassError'
         },
-        ConfigurationData: {
-            path: 'cordova/plugin/ConfigurationData'
-        },
         Connection: {
             path: 'cordova/plugin/Connection'
         },
@@ -139,12 +117,6 @@ module.exports = {
         MediaError: {
             path: 'cordova/plugin/MediaError'
         },
-        MediaFile: {
-            path: 'cordova/plugin/MediaFile'
-        },
-        MediaFileData:{
-            path: 'cordova/plugin/MediaFileData'
-        },
         Position: {
             path: 'cordova/plugin/Position'
         },

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/06cb69fa/lib/common/plugin/capture/symbols.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/capture/symbols.js b/lib/common/plugin/capture/symbols.js
new file mode 100644
index 0000000..868216a
--- /dev/null
+++ b/lib/common/plugin/capture/symbols.js
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var modulemapper = require('cordova/modulemapper');
+
+modulemapper.clobbers('cordova/plugin/CaptureError', 'CaptureError');
+modulemapper.clobbers('cordova/plugin/CaptureAudioOptions', 'CaptureAudioOptions');
+modulemapper.clobbers('cordova/plugin/CaptureImageOptions', 'CaptureImageOptions');
+modulemapper.clobbers('cordova/plugin/CaptureVideoOptions', 'CaptureVideoOptions');
+modulemapper.clobbers('cordova/plugin/ConfigurationData', 'ConfigurationData');
+modulemapper.clobbers('cordova/plugin/MediaFile', 'MediaFile');
+modulemapper.clobbers('cordova/plugin/MediaFileData', 'MediaFileData');
+modulemapper.clobbers('cordova/plugin/capture', 'navigator.device.capture');

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/06cb69fa/lib/windows8/platform.js
----------------------------------------------------------------------
diff --git a/lib/windows8/platform.js b/lib/windows8/platform.js
index 3b43e6d..d07016a 100755
--- a/lib/windows8/platform.js
+++ b/lib/windows8/platform.js
@@ -99,13 +99,6 @@ module.exports = {
         },
         navigator: {
             children: {
-                device: {
-                    children: {
-                        capture: {
-                            path: "cordova/plugin/capture"
-                        }
-                    }
-                },
                 console: {
                     path: "cordova/plugin/windows8/console"
                 }
@@ -114,10 +107,5 @@ module.exports = {
         MediaError: {
             path: 'cordova/plugin/MediaError'
         }
-    },
-    merges: {
-        MediaFile: {
-            path: "cordova/plugin/windows8/MediaFile"
-        }
     }
 };

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/06cb69fa/lib/windows8/plugin/capture/symbols.js
----------------------------------------------------------------------
diff --git a/lib/windows8/plugin/capture/symbols.js b/lib/windows8/plugin/capture/symbols.js
new file mode 100644
index 0000000..d47db46
--- /dev/null
+++ b/lib/windows8/plugin/capture/symbols.js
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var modulemapper = require('cordova/modulemapper');
+
+modulemapper.clobbers('cordova/plugin/CaptureError', 'CaptureError');
+modulemapper.clobbers('cordova/plugin/CaptureAudioOptions', 'CaptureAudioOptions');
+modulemapper.clobbers('cordova/plugin/CaptureImageOptions', 'CaptureImageOptions');
+modulemapper.clobbers('cordova/plugin/CaptureVideoOptions', 'CaptureVideoOptions');
+modulemapper.clobbers('cordova/plugin/MediaFile', 'MediaFile');
+modulemapper.clobbers('cordova/plugin/MediaFileData', 'MediaFileData');
+modulemapper.clobbers('cordova/plugin/capture', 'navigator.device.capture');
+
+modulemapper.merges('cordova/plugin/windows8/MediaFile', 'MediaFile');

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/06cb69fa/lib/windowsphone/platform.js
----------------------------------------------------------------------
diff --git a/lib/windowsphone/platform.js b/lib/windowsphone/platform.js
index 7546a70..2affe96 100644
--- a/lib/windowsphone/platform.js
+++ b/lib/windowsphone/platform.js
@@ -57,13 +57,6 @@ module.exports = {
         },
         navigator: {
             children: {
-                device: {
-                    children:{
-                        capture:{
-                            path:"cordova/plugin/capture"
-                        }
-                    }
-                },
                 console: {
                     path: "cordova/plugin/windowsphone/console"
 


Mime
View raw message