ripple-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brentlint...@apache.org
Subject [3/4] incubator-ripple git commit: FEATURE added dummy nfc module
Date Sun, 16 Nov 2014 19:26:52 GMT
FEATURE added dummy nfc module


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/5e4d7b7d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/5e4d7b7d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/5e4d7b7d

Branch: refs/heads/master
Commit: 5e4d7b7d069f6928ac9854ed7ef0f8af86cbc22b
Parents: e006296
Author: simon <simon.thiel@gmx.de>
Authored: Mon Jun 23 15:10:01 2014 +0200
Committer: simon <simon.thiel@gmx.de>
Committed: Mon Jun 23 15:10:01 2014 +0200

----------------------------------------------------------------------
 .../platform/cordova/3.0.0/bridge/nfcdummy.js   | 28 ++++++++++++++++++++
 lib/client/platform/cordova/3.0.0/spec.js       |  2 ++
 2 files changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/5e4d7b7d/lib/client/platform/cordova/3.0.0/bridge/nfcdummy.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/3.0.0/bridge/nfcdummy.js b/lib/client/platform/cordova/3.0.0/bridge/nfcdummy.js
new file mode 100644
index 0000000..24558c3
--- /dev/null
+++ b/lib/client/platform/cordova/3.0.0/bridge/nfcdummy.js
@@ -0,0 +1,28 @@
+/*
+ *
+ * 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.
+ *
+ */
+
+
+module.exports = {
+
+    init: function (win, fail, args) {
+        fail("nfc is not supported on ripple");
+    }
+};

http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/5e4d7b7d/lib/client/platform/cordova/3.0.0/spec.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/3.0.0/spec.js b/lib/client/platform/cordova/3.0.0/spec.js
index f71c1a9..b89246f 100644
--- a/lib/client/platform/cordova/3.0.0/spec.js
+++ b/lib/client/platform/cordova/3.0.0/spec.js
@@ -57,6 +57,8 @@ module.exports = {
         // scandit barcode scanner @see https://github.com/Scandit/BarcodeScannerPlugin
         bridge.add("ScanditSDK", ripple('platform/cordova/3.0.0/bridge/scanditsdk'));
 
+        bridge.add("NfcPlugin", ripple('platform/cordova/3.0.0/bridge/nfcdummy'));
+
         honeypot.monitor(win, "cordova").andRun(get, set);
 
         //HACK: BlackBerry does vibration different


Mime
View raw message