Bug 3248 - Communicate to the user that PhoneGap requires WRT 1.1
authorEugene Ostroukhov <eugeneo@symbian.org>
Wed, 14 Jul 2010 11:03:52 -0700
changeset 446 01ed86179b76
parent 445 423889d5d6d3
child 447 a66f421f3a32
Bug 3248 - Communicate to the user that PhoneGap requires WRT 1.1 Bug 3249 - Add widget.wrt.* properties support
org.symbian.tools.wrttools.previewer/preview/script/lib/widget.js
org.symbian.tools.wrttools/libraries/core/widget.js
org.symbian.tools.wrttools/plugin.xml
org.symbian.tools.wrttools/projecttemplates/phonegap.zip
--- a/org.symbian.tools.wrttools.previewer/preview/script/lib/widget.js	Tue Jul 13 17:56:47 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/script/lib/widget.js	Wed Jul 14 11:03:52 2010 -0700
@@ -39,7 +39,17 @@
 		interval: 20,
 		isFront: false,
 		preferenceArray: [],
-		preferenceKey: 0
+		preferenceKey: 0,
+		wrt : {
+			version : "1.1",
+			platform : {
+				id : "S60",
+				romVersion : "V 31.0.101 16-09-2009 RM-356 (C) NMP",
+				manufacturer : "Nokia",
+				packageVersion : "7.00(0)",
+				model : "5800 XpressMusic"
+			}
+		}
 	};
 	
 	
--- a/org.symbian.tools.wrttools/libraries/core/widget.js	Tue Jul 13 17:56:47 2010 -0700
+++ b/org.symbian.tools.wrttools/libraries/core/widget.js	Wed Jul 14 11:03:52 2010 -0700
@@ -32,6 +32,7 @@
  */
 Window.prototype.console = new Console();
 
+
 /**
  * Property menu
  * 
@@ -183,6 +184,20 @@
 };
 
 /**
+ * WRT1.1 system properties
+ */
+Widget.prototype.wrt = {
+	version : "1.1",
+	platform : {
+		id : "S60",
+		romVersion : "V 31.0.101 16-09-2009 RM-356 (C) NMP",
+		manufacturer : "Nokia",
+		packageVersion : "7.00(0)",
+		model : "5800 XpressMusic"
+	}
+};
+
+/**
  * device object. entry point to device service API (SAPI)
  */
 function Device() {
--- a/org.symbian.tools.wrttools/plugin.xml	Tue Jul 13 17:56:47 2010 -0700
+++ b/org.symbian.tools.wrttools/plugin.xml	Wed Jul 14 11:03:52 2010 -0700
@@ -126,7 +126,6 @@
             default-html-name="index"
             default-js-name="basic"
             icon="icons/main16.gif"
-            id-pattern="com.{0}.basic.widget"
             name="Minimal Project"
             order="10">
 			<description>
@@ -140,7 +139,6 @@
             default-html-name="index"
             default-js-name="HelloWithWRTKit"
             icon="icons/WRT_main_16.png"
-            id-pattern="com.{0}.helloWithWRTKit.widget"
             name="Hello World Project"
             order="1"
             wizard-page-factory="org.symbian.tools.wrttools.wizards.HelloWithWRTKitProjectDetailsWizardPage$Factory">
@@ -155,11 +153,10 @@
             default-html-name="index"
             default-js-name="main"
             icon="icons/phonegap.png"
-            id-pattern="com.{0}.widget"
             name="PhoneGap Application"
             order="2">
          <description>
-            This wizard generates a project based on the PhoneGap library that showcases PhoneGap API usage.
+            This wizard generates a project based on the PhoneGap library that showcases PhoneGap API usage. PhoneGap applications require WRT 1.1 or newer.
          </description>
          <requires-library>phonegap</requires-library>
       </projectTemplate>
@@ -170,7 +167,6 @@
             default-html-name="index"
             default-js-name="Flickr"
             icon="icons/flickr.gif"
-            id-pattern="com.{0}.flickr.widget"
             name="Flickr Project"
             order="3"
             wizard-page-factory="org.symbian.tools.wrttools.wizards.FlickrProjectDetailsWizardPage$Factory">
@@ -186,7 +182,6 @@
             default-html-name="index"
             default-js-name="RSSReader"
             icon="icons/rss.gif"
-            id-pattern="com.{0}.rssreader.widget"
             name="RSS Reader Project"
             order="4"
             wizard-page-factory="org.symbian.tools.wrttools.wizards.RssReaderProjectDetailsWizardPage$Factory">
@@ -201,7 +196,6 @@
             default-html-name="index"
             default-js-name="basic"
             icon="icons/main16.gif"
-            id-pattern="com.{0}.basic.widget"
             order="5"
             name="Various UI Templates">
          <description>
Binary file org.symbian.tools.wrttools/projecttemplates/phonegap.zip has changed