You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2012/04/28 02:27:55 UTC
[2/17] bada-wac commit: removing unsed icons and javascript files
removing unsed icons and javascript files
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/commit/7850fb86
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/tree/7850fb86
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/diff/7850fb86
Branch: refs/heads/master
Commit: 7850fb863407e9aa092d9dee3050d800a4bffd8b
Parents: fdb75da
Author: Anis Kadri <an...@gmail.com>
Authored: Fri Apr 27 17:21:47 2012 -0700
Committer: Anis Kadri <an...@gmail.com>
Committed: Fri Apr 27 17:21:47 2012 -0700
----------------------------------------------------------------------
Icons/CordovaWAC_type3.png | Bin 4047 -> 0 bytes
Icons/CordovaWAC_type4.png | Bin 6768 -> 0 bytes
Icons/CordovaWAC_type5.png | Bin 6397 -> 0 bytes
Icons/Splash_type3.png | Bin 75524 -> 0 bytes
Icons/Splash_type4.png | Bin 161582 -> 0 bytes
Icons/Splash_type5.png | Bin 59740 -> 0 bytes
Res/js/accelerometer.js | 47 ---------------------------
Res/js/capture.js | 53 ------------------------------
Res/js/compass.js | 53 ------------------------------
Res/js/connection.js | 37 ---------------------
Res/js/device.js | 68 ---------------------------------------
Res/js/notification.js | 48 ---------------------------
12 files changed, 0 insertions(+), 306 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Icons/CordovaWAC_type3.png
----------------------------------------------------------------------
diff --git a/Icons/CordovaWAC_type3.png b/Icons/CordovaWAC_type3.png
deleted file mode 100644
index 1b67a87..0000000
Binary files a/Icons/CordovaWAC_type3.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Icons/CordovaWAC_type4.png
----------------------------------------------------------------------
diff --git a/Icons/CordovaWAC_type4.png b/Icons/CordovaWAC_type4.png
deleted file mode 100644
index 79a3d9b..0000000
Binary files a/Icons/CordovaWAC_type4.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Icons/CordovaWAC_type5.png
----------------------------------------------------------------------
diff --git a/Icons/CordovaWAC_type5.png b/Icons/CordovaWAC_type5.png
deleted file mode 100644
index 8524c59..0000000
Binary files a/Icons/CordovaWAC_type5.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Icons/Splash_type3.png
----------------------------------------------------------------------
diff --git a/Icons/Splash_type3.png b/Icons/Splash_type3.png
deleted file mode 100644
index 82d830c..0000000
Binary files a/Icons/Splash_type3.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Icons/Splash_type4.png
----------------------------------------------------------------------
diff --git a/Icons/Splash_type4.png b/Icons/Splash_type4.png
deleted file mode 100644
index 7474959..0000000
Binary files a/Icons/Splash_type4.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Icons/Splash_type5.png
----------------------------------------------------------------------
diff --git a/Icons/Splash_type5.png b/Icons/Splash_type5.png
deleted file mode 100644
index d238c8e..0000000
Binary files a/Icons/Splash_type5.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Res/js/accelerometer.js
----------------------------------------------------------------------
diff --git a/Res/js/accelerometer.js b/Res/js/accelerometer.js
deleted file mode 100644
index 1f729be..0000000
--- a/Res/js/accelerometer.js
+++ /dev/null
@@ -1,47 +0,0 @@
-function Acceleration(x, y, z) {
- this.x = x;
- this.y = y;
- this.z = z;
- this.timestamp = new Date().getTime();
-}
-
-navigator.accelerometer = {
- getCurrentAcceleration: function(successCallback, errorCallback, options) {
- var success = function(acceleration) {
- console.log("accelermometer:getCurrentAcceleration:success");
- var accel = new Acceleration(acceleration.xAxis, acceleration.yAxis, acceleration.zAxis);
- successCallback(accel);
- };
- var error = function(err) {
- console.log("accelermometer:getCurrentAcceleration:error");
- switch(err.code) {
- case err.TYPE_MISMATCH_ERR:
- console.log("TYPE MISMATCH ERROR");
- break;
- }
-
- errorCallback(err);
- };
- deviceapis.accelerometer.getCurrentAcceleration(success, error);
- },
- watchAcceleration: function(successCallback, errorCallback, options) {
- var success = function(acceleration) {
- console.log("accelerometer:watchAcceleration:success");
- var accel = new Acceleration(acceleration.xAxis, acceleration.yAxis, acceleration.zAxis);
- successCallback(accel);
- };
- var error = function(err) {
- console.log("accelerometer:watchAcceleration:error");
- switch(err.code) {
- case err.TYPE_MISMATCH_ERR:
- break;
- }
-
- errorCallback(err);
- };
- return deviceapis.accelerometer.watchAcceleration(success, error);
- },
- clearWatch: function(watchID) {
- deviceapis.accelerometer.clearWatch(watchID);
- }
-};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Res/js/capture.js
----------------------------------------------------------------------
diff --git a/Res/js/capture.js b/Res/js/capture.js
deleted file mode 100644
index 4ef19b1..0000000
--- a/Res/js/capture.js
+++ /dev/null
@@ -1,53 +0,0 @@
-navigator.camera = {
- _mainCamera: null,
- _cams: [],
- getPicture: function(cameraSuccess, cameraFailure, cameraOptions) {
- // TODO
- },
- getPreview: function() {
- var self = this;
- var onCreatePreviewNodeSuccess = function(previewObject) {
- var previewDiv = document.getElementById("preview");
- previewId = previewObject.id;
- previewDiv.appendChild(previewObject);
- previewObject.style.visibility = "visible";
- };
- var error = function(e) {
- alert("An error occured: " + e.message);
- };
-
- var success = function(cams) {
- if (cams.length > 0) {
- self._cams = cams;
- self._mainCamera = cams[0];
- self._mainCamera.createPreviewNode(onCreatePreviewNodeSuccess, error);
- return;
- }
- alert("Sorry, no cameras available.");
- };
- deviceapis.camera.getCameras(success, error);
- }
-};
-
-navigator.capture = {
- captureAudio: function() {
- console.log("navigator.capture.captureAudio unsupported!");
- },
- captureVideo: function(success, fail, options) {
- var camera = navigator.camera._mainCamera;
- camera.startVideoCapture(success, fail, options);
- if(options.duration) {
- Osp.Core.Function.delay(camera.stopVideoCapture, options.duration, camera);
- }
- },
- stopVideoCapture: function() {
- navigator.camera._mainCamera.stopVideoCapture();
- },
- captureImage: function(success, fail, options) {
- try {
- navigator.camera._mainCamera.captureImage(success, fail, options);
- } catch(exp) {
- alert("Exception :[" + exp.code + "] " + exp.message);
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Res/js/compass.js
----------------------------------------------------------------------
diff --git a/Res/js/compass.js b/Res/js/compass.js
deleted file mode 100644
index 599f01d..0000000
--- a/Res/js/compass.js
+++ /dev/null
@@ -1,53 +0,0 @@
-function CompassHeading(magneticHeading, trueHeading, headingAccuracy) {
- this.magneticHeading = magneticHeading;
- this.trueHeading = trueHeading;
- this.headingAccuracy = headingAccuracy;
- this.timestamp = new Date();
-}
-
-navigator.compass = {
- getCurrentHeading: function(compassSuccess, compassError, compassOptions) {
- if(deviceapis.orientation == undefined) {
- console.log("navigator.compass.getCurrentHeading", "Operation not supported!")
- return -1;
- }
- var success = function(orientation) {
- var compassHeading = new CompassHeading(orientation.alpha, orientation.alpha, 0);
- compassSuccess(compassHeading);
- };
- var error = function(error) {
- compassError(error);
- };
- deviceapis.orientation.getCurrentOrientation(success, error);
- },
- watchHeading: function(compassSuccess, compassError, compassOptions) {
- if(deviceapis.orientation == undefined) {
- console.log("navigator.compass.watchHeading", "Operation not supported!")
- return -1;
- }
- var success = function(orientation) {
- var compassHeading = new CompassHeading(orientation.alpha, orientation.alpha, 0);
- compassSuccess(compassHeading);
- };
- var error = function(error) {
- compassError(error);
- };
- var orientationOptions = null;
-
- if (compassOptions != undefined) {
- orientationOptions = {
- minNotificationInterval: compassOptions.frequency || 100
- };
- }
- return deviceapis.orientation.watchOrientation(success, error, orientationOptions);
- },
- clearWatch : function(watchID) {
- deviceapis.orientation.clearWatch(watchID);
- },
- watchHeadingFilter: function() {
- console.log("navigator.compass.watchHeadingFilter", "Operation not supported!");
- },
- clearWatchFilter: function() {
- console.log("navigator.compass.clearWatchFilter", "Operation not supported!");
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Res/js/connection.js
----------------------------------------------------------------------
diff --git a/Res/js/connection.js b/Res/js/connection.js
deleted file mode 100644
index f1ad5db..0000000
--- a/Res/js/connection.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var Connection = {
- UNKNOWN: "unknown",
- ETHERNET: "ethernet",
- WIFI: "wifi",
- CELL_2G: "2g",
- CELL_3G: "3g",
- CELL_4G: "4g",
- NONE: "none"
-};
-// We can't tell if a cell connection is 2,3 or 4G.
-// We just know if it's connected and the signal strength
-// if it's roaming and the network name etc..so unless wifi we default to UNKNOWN
-function NetworkConnection() {
- this.type = Connection.UNKNOWN;
- var self = this;
-
- var error = function(error) {
- console.log(JSON.stringify(error));
- };
-
- deviceapis.devicestatus.getPropertyValue(function(value) {
- console.log("Device WiFi network status: "+value);
- if(value == "connected") {
- self.type = Connection.WIFI;
- }
- }, error, {aspect: "WiFiNetwork", property: "networkStatus"});
-
-// info.getPropertyValue(function(value) {
-// console.log("Device Cellular network status: "+value);
-// if(signalStrength > 10) {
-// self.type = Connection.CELL_3G;
-// }
-// }, error, {aspect: "CellularNetwork", property: "signalStrength"});
-}
-
-navigator.network = {};
-navigator.network.connection = new NetworkConnection();
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Res/js/device.js
----------------------------------------------------------------------
diff --git a/Res/js/device.js b/Res/js/device.js
deleted file mode 100644
index d22d8e9..0000000
--- a/Res/js/device.js
+++ /dev/null
@@ -1,68 +0,0 @@
-function Device() {
- this.name = "";
- this.phonegap = "1.6.0";
- this.platform = "";
- this.uuid = "";
- this.os_name = "";
- this.os_version = "";
- this.os_vendor = "";
-};
-
-var device;
-
-function fireDeviceReady() {
- console.log("deviceready");
- var e = document.createEvent("Events");
- e.initEvent("deviceready");
- document.dispatchEvent(e);
-}
-
-function setDeviceInfo() {
- var info = deviceapis.devicestatus;
- var properties = ["name", "uuid", "os_name", "os_vendor", "os_version"];
-
- device = new Device();
-
- var checkProperties = function() {
- properties.pop();
- if(properties.length == 0) {
- fireDeviceReady();
- }
- };
-
- var error = function(error) {
- console.log("Error while fetching "+error);
- };
-
- info.getPropertyValue(function(value) {
- console.log("Device IMEI: "+value);
- device.uuid = value;
- checkProperties();
- }, error, {aspect: "Device", property: "imei"});
- info.getPropertyValue(function(value) {
- console.log("Device name: "+value);
- device.name = value;
- checkProperties();
- }, error, {aspect: "Device", property: "version"});
- info.getPropertyValue(function(value) {
- console.log("OperatingSystem name: "+value);
- device.os_name = value;
- checkProperties();
- }, error, {aspect: "OperatingSystem", property: "name"});
- info.getPropertyValue(function(value) {
- console.log("OperatingSystem version: "+value);
- device.os_version = value;
- checkProperties();
- }, error, {aspect: "OperatingSystem", property: "version"});
- info.getPropertyValue(function(value) {
- console.log("OperatingSystem vendor: "+value);
- device.os_vendor = value;
- checkProperties();
- }, error, {aspect: "OperatingSystem", property: "vendor"});
-};
-
-Osp.App.Application.addEventListener("initializing", function()
-{
- console.log("initializing");
- setDeviceInfo();
-}, this);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/7850fb86/Res/js/notification.js
----------------------------------------------------------------------
diff --git a/Res/js/notification.js b/Res/js/notification.js
deleted file mode 100644
index 11c8021..0000000
--- a/Res/js/notification.js
+++ /dev/null
@@ -1,48 +0,0 @@
-navigator.notification = {
- alert: function(message, alertCallback, title, buttonName) {
- alert(message);
- },
- confirm: function(message, confirmCallback, title, buttonLabels) {
- alert(message);
- },
- beep: function(times, milliseconds) {
- try {
- deviceapis.deviceinteraction.stopNotify();
- if(times == 0) {
- return;
- }
- deviceapis.deviceinteraction.startNotify(function() {
- console.log("Notifying");
- },
- function(e) {
- console.log("Failed to notify: " + e);
- },
- milliseconds);
- Osp.Core.Function.delay(this.beep, 1000+milliseconds, this, times - 1, milliseconds);
- } catch(e) {
- console.log("Exception thrown: " + e);
- }
- },
- vibrate: function(milliseconds) {
- try {
- deviceapis.deviceinteraction.startVibrate(function() {
- console.log("Vibrating...");
- },
- function(e) {
- console.log("Failed to vibrate: " + e);
- },
- milliseconds);
- } catch(e) {
- console.log("Exception thrown: " + e);
- }
- },
- lightOn: function(milliseconds) {
- deviceapis.deviceinteraction.lightOn(function() {
- console.log("Lighting for "+milliseconds+" second");
- },
- function() {
- console.log("Failed to light");
- },
- milliseconds);
- }
-};
\ No newline at end of file