Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:phonegap/phonegap
Browse files Browse the repository at this point in the history
Conflicts:
	iphone
  • Loading branch information
Joe Bowser committed Dec 23, 2009
2 parents 40b6fc4 + 4b3cbbe commit 2d82f12
Show file tree
Hide file tree
Showing 154 changed files with 513 additions and 12,175 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "iphone/PhoneGapLibTest/www"]
path = iphone/PhoneGapLibTest/www
url = git://github.com/phonegap/mobile-spec.git
[submodule "iphone"]
path = iphone
url = git://github.com/phonegap/phonegap-iphone.git
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ offers one unified API for accessing core functionality on all
devices. Where possible, phonegap follows the **HTML5 spec**.


PhoneGap-iPhone
-------------------------------------------------------------
The main repo is at http://github.com/phonegap/phonegap-iphone it is
submoduled into this project.

To get the submodule, from a command prompt, while in the root folder of phonegap:
1) git submodule init
2) git submodule update


API
-------------------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions blackberry/framework/phonegap.jdp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ src\com\nitobi\phonegap\api\CommandManager.java
src\com\nitobi\phonegap\api\impl\CameraCommand.java
src\com\nitobi\phonegap\api\impl\ContactsCommand.java
src\com\nitobi\phonegap\api\impl\DeviceCommand.java
src\com\nitobi\phonegap\api\impl\ExitCommand.java
src\com\nitobi\phonegap\api\impl\GeoLocationCommand.java
src\com\nitobi\phonegap\api\impl\MediaCommand.java
src\com\nitobi\phonegap\api\impl\NetworkCommand.java
src\com\nitobi\phonegap\api\impl\NotificationCommand.java
src\com\nitobi\phonegap\api\impl\OrientationCommand.java
src\com\nitobi\phonegap\api\impl\SMSCommand.java
src\com\nitobi\phonegap\api\impl\TelephonyCommand.java
src\com\nitobi\phonegap\io\AsynchronousResourceFetcher.java
src\com\nitobi\phonegap\io\Callback.java
Expand Down
5 changes: 3 additions & 2 deletions blackberry/framework/src/www/phonegap.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,9 @@ Geolocation.prototype.stop = function() {
/**
* Maps current location
*/
Geolocation.prototype.map = function() {
if (this.lastPosition == null) {
if (typeof navigator.map == "undefined") navigator.map = {};
navigator.map.show = function() {
if (navigator.geolocation.lastPosition == null) {
alert("[PhoneGap] No position to map yet.");
return;
} else {
Expand Down
5 changes: 3 additions & 2 deletions blackberry/js/geolocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ Geolocation.prototype.stop = function() {
/**
* Maps current location
*/
Geolocation.prototype.map = function() {
if (this.lastPosition == null) {
if (typeof navigator.map == "undefined") navigator.map = {};
navigator.map.show = function() {
if (navigator.geolocation.lastPosition == null) {
alert("[PhoneGap] No position to map yet.");
return;
} else {
Expand Down
20 changes: 7 additions & 13 deletions blackberry/js/media.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/**
* This class provides access to the device media, interfaces to both sound and video
* This class provides access to the device audio.
* @constructor
*/
function Media(src, successCallback, errorCallback) {
function Audio(src) {
this.src = src;
this.successCallback = successCallback;
this.errorCallback = errorCallback;
this.loop = false;
this.error = null;
}

/**
* This class contains information about any Media errors.
* @constructor
*/
function MediaError() {
this.code = null,
this.code = null;
this.message = "";
}

Expand All @@ -22,14 +22,8 @@ MediaError.MEDIA_ERR_NETWORK = 2;
MediaError.MEDIA_ERR_DECODE = 3;
MediaError.MEDIA_ERR_NONE_SUPPORTED = 4;


//if (typeof navigator.audio == "undefined") navigator.audio = new Media(src);

Media.prototype.record = function() {
alert('Media recording not implemented - yet.');
};

Media.prototype.play = function() {
Media.prototype.play = function(successCallback, errorCallback) {

PhoneGap.exec("media",[this.src]);
};

Expand Down
1 change: 0 additions & 1 deletion iphone/.gitignore

This file was deleted.

54 changes: 0 additions & 54 deletions iphone/Makefile

This file was deleted.

This file was deleted.

This file was deleted.

Binary file removed iphone/PhoneGap-based Application/Default.png
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

Loading

0 comments on commit 2d82f12

Please sign in to comment.