cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject webworks commit: [CB-1853] - adding in device.model
Date Mon, 03 Dec 2012 22:12:14 GMT
Updated Branches:
  refs/heads/master 22083e212 -> db9ae1482


[CB-1853] - adding in device.model


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

Branch: refs/heads/master
Commit: db9ae1482452ab00c6e91bcd9fdd705aa8a3266e
Parents: 22083e2
Author: Tim Kim <timk@adobe.com>
Authored: Mon Dec 3 13:20:36 2012 -0800
Committer: Tim Kim <timk@adobe.com>
Committed: Mon Dec 3 13:20:36 2012 -0800

----------------------------------------------------------------------
 .../ext/src/org/apache/cordova/device/Device.java  |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/db9ae148/framework/ext/src/org/apache/cordova/device/Device.java
----------------------------------------------------------------------
diff --git a/framework/ext/src/org/apache/cordova/device/Device.java b/framework/ext/src/org/apache/cordova/device/Device.java
index 4ab5f20..496b96b 100644
--- a/framework/ext/src/org/apache/cordova/device/Device.java
+++ b/framework/ext/src/org/apache/cordova/device/Device.java
@@ -40,6 +40,7 @@ public final class Device extends Plugin {
 	public static final String FIELD_PLATFORM 	= "platform";
 	public static final String FIELD_UUID     	= "uuid";
 	public static final String FIELD_CORDOVA	= "cordova";
+	public static final String FIELD_MODEL 		= "model";
 	public static final String FIELD_NAME 		= "name";
 	public static final String FIELD_VERSION 	= "version";
 
@@ -54,6 +55,7 @@ public final class Device extends Plugin {
 				device.put( FIELD_PLATFORM, "BlackBerry");
 				device.put( FIELD_UUID, new Integer( DeviceInfo.getDeviceId()) );
 				device.put( FIELD_CORDOVA, "2.3.0rc1" );
+				device.put( FIELD_MODEL, new String(DeviceInfo.getDeviceName()) );
 				device.put( FIELD_NAME, new String(DeviceInfo.getDeviceName()) );
 				device.put( FIELD_VERSION, new String(DeviceInfo.getSoftwareVersion()) );
 				result = new PluginResult(PluginResult.Status.OK, device);


Mime
View raw message