# HG changeset patch # User Eugene Ostroukhov # Date 1279130632 25200 # Node ID 01ed86179b76df833ec1a6f4c92ee39852a5b3f9 # Parent 423889d5d6d339bd085e80e0dd0b74154c66dc09 Bug 3248 - Communicate to the user that PhoneGap requires WRT 1.1 Bug 3249 - Add widget.wrt.* properties support diff -r 423889d5d6d3 -r 01ed86179b76 org.symbian.tools.wrttools.previewer/preview/script/lib/widget.js --- 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" + } + } }; diff -r 423889d5d6d3 -r 01ed86179b76 org.symbian.tools.wrttools/libraries/core/widget.js --- 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() { diff -r 423889d5d6d3 -r 01ed86179b76 org.symbian.tools.wrttools/plugin.xml --- 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"> @@ -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"> - 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. phonegap @@ -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"> diff -r 423889d5d6d3 -r 01ed86179b76 org.symbian.tools.wrttools/projecttemplates/phonegap.zip Binary file org.symbian.tools.wrttools/projecttemplates/phonegap.zip has changed