package com.phonegap.device;

import net.rim.device.api.script.Scriptable;
import net.rim.device.api.system.DeviceInfo;

public final class DeviceFeature extends Scriptable {
	public static final String FIELD_PLATFORM = "platform";
	public static final String FIELD_UUID     = "uuid";
	public static final String FIELD_PHONEGAP = "phonegap";
	
	public Object getField(String name) throws Exception {
		
		if (name.equals(FIELD_PLATFORM)) {
			return new String(DeviceInfo.getPlatformVersion());
		}
		else if (name.equals(FIELD_UUID)) {
			return new Integer(DeviceInfo.getDeviceId());
		}
		else if (name.equals(FIELD_PHONEGAP)) {
			return "pre-0.92 EDGE";
		}
		
		return super.getField(name);
	}
}







@@ -1,124 +1,636 @@
-package com.phonegap.device;%0A%0Aimport net.rim.device.api.script.Scriptable;%0Aimport net.rim.device.api.system.DeviceInfo;%0A
+/*%0A * PhoneGap is available under *either* the terms of the modified BSD license *or* the%0A * MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.%0A * %0A * Copyright (c) 2005-2010, Nitobi Software Inc.%0A * Copyright (c) 2010, IBM Corporation%0A */%0Apackage com.phonegap.device;%0A%0Aimport net.rim.device.api.script.Scriptable;%0Aimport net.rim.device.api.system.DeviceInfo;%0A%0A/**%0A * PhoneGap plugin that provides device information, including:%0A * %0A * - Device platform version (e.g. 2.13.0.95). Not to be confused with BlackBerry OS version.%0A * - Unique device identifier (UUID).%0A * - PhoneGap software version.%0A */
 %0Apub
@@ -1152,21 +1152,13 @@
 rn %22
-pre-0.92 EDGE
+0.9.2
 %22;%0A%09
@@ -1199,14 +1199,8 @@
 );%0A%09%7D%0A%7D%0A
-%0A%0A%0A%0A%0A%0A

Change PhoneGap version to '0.9.2'.