You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by lo...@apache.org on 2013/05/07 17:16:25 UTC
[09/32] js commit: [BlackBerry10] Remove NetworkStatus plugin
[BlackBerry10] Remove NetworkStatus plugin
Reviewed by Jeffrey Heifetz <jh...@blackberry.com>
Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/86c137f1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/86c137f1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/86c137f1
Branch: refs/heads/future
Commit: 86c137f1c77154ed9d565c73c9aef8a1ff452309
Parents: d5ec1d2
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Tue Mar 19 13:41:05 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri May 3 09:49:38 2013 -0400
----------------------------------------------------------------------
lib/blackberry10/plugin/blackberry10/manager.js | 1 -
lib/blackberry10/plugin/blackberry10/network.js | 28 -------------
test/blackberry10/test.network.js | 39 ------------------
3 files changed, 0 insertions(+), 68 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/86c137f1/lib/blackberry10/plugin/blackberry10/manager.js
----------------------------------------------------------------------
diff --git a/lib/blackberry10/plugin/blackberry10/manager.js b/lib/blackberry10/plugin/blackberry10/manager.js
index 76476be..b0855b7 100644
--- a/lib/blackberry10/plugin/blackberry10/manager.js
+++ b/lib/blackberry10/plugin/blackberry10/manager.js
@@ -21,7 +21,6 @@
var cordova = require('cordova'),
plugins = {
- 'NetworkStatus' : require('cordova/plugin/blackberry10/network'),
'Accelerometer' : require('cordova/plugin/blackberry10/accelerometer'),
'Battery' : require('cordova/plugin/blackberry10/battery'),
'Compass' : require('cordova/plugin/blackberry10/magnetometer'),
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/86c137f1/lib/blackberry10/plugin/blackberry10/network.js
----------------------------------------------------------------------
diff --git a/lib/blackberry10/plugin/blackberry10/network.js b/lib/blackberry10/plugin/blackberry10/network.js
deleted file mode 100644
index b640f75..0000000
--- a/lib/blackberry10/plugin/blackberry10/network.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- *
- * 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 = {
- getConnectionInfo: function (args, win, fail) {
- return { "status": cordova.callbackStatus.OK, "message": blackberry.connection.type};
- }
-};
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/86c137f1/test/blackberry10/test.network.js
----------------------------------------------------------------------
diff --git a/test/blackberry10/test.network.js b/test/blackberry10/test.network.js
deleted file mode 100644
index 5917269..0000000
--- a/test/blackberry10/test.network.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- *
- * 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.
- *
-*/
-
-describe("blackberry10 network", function () {
- var cordova = require('cordova'),
- network = require('cordova/plugin/blackberry10/network');
-
- it("returns the connection info", function () {
- global.blackberry = {
- connection: {
- type: "pigeon"
- }
- };
- expect(network.getConnectionInfo()).toEqual({
- status: cordova.callbackStatus.OK,
- message: "pigeon"
- });
-
- delete global.blackberry;
- });
-});