cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmo...@apache.org
Subject [36/50] [abbrv] git commit: CB-1291 Windows8 Adding contact picker apis
Date Mon, 05 May 2014 16:10:23 GMT
CB-1291 Windows8 Adding contact picker apis


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/04b96dc9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/04b96dc9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/04b96dc9

Branch: refs/heads/cdvtest
Commit: 04b96dc9426cc0c2504f0a36ba9acacb4ce52e6a
Parents: 431eeea
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Mar 12 17:33:53 2014 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Mar 12 17:33:53 2014 -0700

----------------------------------------------------------------------
 plugin.xml                   |  7 ++++++-
 src/windows8/ContactProxy.js | 37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/04b96dc9/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index bf2aeb8..acfc080 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -187,6 +187,11 @@
         <js-module src="src/firefoxos/ContactsProxy.js" name="ContactsProxy">
             <runs />
         </js-module>
-    </platform>    
+    </platform>  
+
+        <!-- wp8 -->
+    <js-module src="src/windows8/ContactProxy.js" name="ContactProxy">
+        <merges target="" />
+    </js-module>
 
 </plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/04b96dc9/src/windows8/ContactProxy.js
----------------------------------------------------------------------
diff --git a/src/windows8/ContactProxy.js b/src/windows8/ContactProxy.js
new file mode 100644
index 0000000..888047a
--- /dev/null
+++ b/src/windows8/ContactProxy.js
@@ -0,0 +1,37 @@
+/*
+ *
+ * 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 cordova = require('cordova');
+
+module.exports = {
+    search:function(win,fail,args){
+        var fields = args[0];
+        var options = args[1];
+    },
+
+    save:function(win,fail,args){
+        var contact = args[0];
+    }
+
+
+}
+
+require("cordova/windows8/commandProxy").add("Contacts",module.exports);
\ No newline at end of file


Mime
View raw message