Skip to content

Commit

Permalink
Fixed build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil Maj committed Dec 1, 2009
1 parent 2dcba15 commit faddcaa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
1 change: 1 addition & 0 deletions blackberry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Create a PhoneGap project with Eclipse
Building PhoneGap BlackBerry Projects with Apache Ant
-------------------------------------------------------------
You'll need all the prerequisites listed by BB Ant Tools (http:https://bb-ant-tools.sourceforge.net/).

1. Once you have cloned the PhoneGap repository, put your HTML, CSS and JavaScript application files in the phonegap/blackberry/framework/src/www folder.
2. Edit the build.xml file in phonegap/blackberry/framework and set the paths at the top of the file, in the <property> elements, to match
your environment setup.
Expand Down
4 changes: 2 additions & 2 deletions blackberry/framework/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!-- name of the binaries to generate (i.e. <blah>.cod, <blah>.jar, etc.) -->
<property name="cod.name" value="AntPGTest" />
<!-- password for the Signature Tool -->
<property name="password" value="some_random_password" />
<property name="password" value="myPassword" />

<target name="build">
<delete dir="www" />
Expand All @@ -36,7 +36,7 @@
</copy>
<delete dir="www" />
<copy todir="${build.dir}">
<fileset dir="" includes="*.cod,*.cso,*.debug,*.jad,*.jar" />
<fileset dir="" includes="*.cod,*.cso,*.debug,*.jad,*.jar,*.csl,*.rapc" />
</copy>
<delete file="${cod.name}.cod" />
<delete file="${cod.name}.cso" />
Expand Down
18 changes: 8 additions & 10 deletions blackberry/framework/src/www/phonegap.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,16 @@ if (typeof navigator.camera == "undefined") navigator.camera = new Camera();
*/

function Contact(jsonObject) {
this.firstName = "";
this.lastName = "";
this.name = "";
this.phones = {};
this.emails = {};
this.address = "";
this.name = {
formatted:''
};
this.phones = [];
this.emails = [];
this.id = "";
}

Contact.prototype.displayName = function()
{
// TODO: can be tuned according to prefs
return this.name;
Contact.prototype.displayName = function() {
return this.name.formatted;
}

function Contacts() {
Expand Down

0 comments on commit faddcaa

Please sign in to comment.