Note that there are some explanatory texts on larger screens.

plurals
  1. POBuilding Dojo 1.7 for Mobile PhoneGap App
    text
    copied!<p>I am trying to build dojo 1.7 to use in my phonegap application. I am currently using dojo 1.6.1. I built my current dojo.js file by going to <a href="http://build.dojotoolkit.org" rel="nofollow">build.dojotoolkit.org</a> and selecting everything under dojox.mobile as well as a dojo.store.JsonRest module. That works great. </p> <p>My issue is trying to create a profile file to create a build similiar to the one I got from the dojo build website. </p> <p>I downloaded dojo 1.7 stable release src. I went into the buildScripts folder from the command line and tried to run a build with the following command:</p> <pre><code>&gt;build profile=path/myMobileProfile.js action=release releaseName=test </code></pre> <p>I used the sample profile from the profiles folder:</p> <pre><code>dependencies = { stripConsole: "normal", layers: [ { name: "dojo.js", customBase: true, dependencies: [ "dojox.mobile.parser", "dojox.mobile", "dojox.mobile.compat" ] }, { name: "../dojox/mobile/_compat.js", layerDependencies: [ "dojo.js" ], dependencies: [ "dojox.mobile._compat" ] } ], prefixes: [ [ "dijit", "../dijit" ], [ "dojox", "../dojox" ] ] } </code></pre> <p>It built with no errors. The dojo.js generated from the build was then dropped into my phonegap application. I changed my index file to the following just for testing: </p> <pre><code>&lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;PhoneGap&lt;/title&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/&gt; &lt;meta http-equiv="cache-control" content="no-cache"/&gt; &lt;meta http-equiv="pragma" content="no-cache"/&gt; &lt;link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojox/mobile/themes/android/android.css" type="text/css" media="screen" title="no title"&gt; &lt;script type="text/javascript" src="libs/dojo/dojo/dojo.js" djConfig="parseOnLoad:true"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8" src="phonegap-1.1.0.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body style="background-color:white"&gt; Phonegap &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Everytime I run the app I get a white page. When I replace the dojo.js file with my working copy I see the Phonegap output.</p> <p>I would like to be able to use dojo 1.7 mobile and some of the new features such as the SpinWheel.</p> <p>Can someone please help me with my build?</p> <p>Thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload