Commits on Apr 4, 2011
  1. Add capability for plugins to delay onDeviceReady until after they

    jtyberg committed Apr 4, 2011
    have initialized themselves.
    The navigator.device.capture object delays onDeviceReady until its
    capture modes have been set.
  2. Media capture: eliminate duplicate image capture modes in

    jtyberg committed Apr 4, 2011
Commits on Apr 1, 2011
  1. Add util method to LocalFileSystem to check if path is root file system

    jtyberg committed Apr 1, 2011
    path.  Makes for cleaner JavaScript when removing directories.
    Handle case when object is not passed to Entry constructor.
Commits on Mar 31, 2011
  1. Add media capture support.

    jtyberg committed Mar 22, 2011
    An implementation of the W3C Media Capture spec:
    Capture operations are supported for audio, video, and images.  Each
    capture operation launches the native audio recorder, video recorder,
    or camera application, respectively.
    Each capture operation runs in the background and terminates after
    the user reaches the capture file limit (if specified), or the user
    cancels the operation by exiting the recording application.
    Current deviations from the spec:
    * maximum duration of audio and video clips is not supported
    * retrieval of supported video capture modes (format and dimensions)
      returns ALL supported video modes, not just capture (the BB API does
      not return any video capture types)
    * cannot specify which capture mode to use programmatically (can only
      be controlled by user)
    * no API to retrieve MediaFileData for media files
Commits on Mar 24, 2011
  1. Add ApplicationUtils class.

    jtyberg committed Mar 22, 2011
    Add methods to determine if an application is installed or running in
    the foreground, and a method to inject Esc key presses (the only way
    to programmatically 'exit' an application).
  2. Add support for null Java values to JSONObject.

    jtyberg committed Mar 22, 2011
    Fixes bug where adding a null value to JSONObject would cause a
  3. Move file path normalizing method to FileUtils class.

    jtyberg committed Mar 22, 2011
    Originally in FileManager plugin, it is useful for other plugins as well.
  4. Propagate resume and pause events from PhoneGap JavaScript to PhoneGap

    jtyberg committed Mar 22, 2011
    native extension.
    The resume and pause callbacks trigger the PluginManager on the native side,
    which in turn invokes the onResume and onPause methods for each plugin.
  5. Update

    jtyberg committed Mar 23, 2011
    Remove outdated 'Getting Started' content and add link to Wiki page.
Commits on Mar 9, 2011
  1. Remove override of 'touchstart' event with 'click' event.

    jtyberg authored and unknown committed Mar 3, 2011
Commits on Mar 4, 2011
  1. Update FileReader read method signatures to match W3C File API spec.

    unknown committed Mar 4, 2011
    readAsText and readAsDataURL now take File object as parameter instead
    of just file path.
Commits on Mar 2, 2011
  1. Add support for W3C File API: Directories and System specification:

    jtyberg committed Mar 1, 2011
    User can retrieve PERSISTENT and TEMPORARY file systems, list their
    contents, and manipulate files and directories within them.
    Modify existing FileWriter implementation
      - Change the way user creates a FileWriter.  User must either pass a
        File object to the FileWriter constructor, or use the
        FileEntry.createWriter() method.
      - Drop support for the 'filePath' and 'append' parameters in the
        FileWriter constructor.  The file path is determined from either the
        File object passed to the FileWriter constructor, or the FileEntry
        object used to create the FileWriter.  To append to a file, use the
        FileWriter object's seek method:
        // writer is a FileWriter object
        // seek to length of file to append;
    Replace FileMgr JavaScript APIs not specified in any File API spec
      - Remove navigator.fileMgr.createDirectory(dirName) function.  To
        create a directory, use the DirectoryEntry.getDirectory() method,
        which is part of the File API: Directories and System spec.  Set
        the Flags.create to 'true':
        // directory is a DirectoryEntry object
        directory.getDirectory(path, {create:true}, successCB, failCB);
      - Remove navigator.fileMgr.getRootPaths() function.  To retrieve the
        root file systems, use the window.requestFileSystem() function,
        which is part of the File API: Directories and System spec.
      - Remove navigator.fileMgr.getFileProperties(fileName) function.  To
        get the properties of a file, use the FileEntry.file() method, which
        is part of the File API: Directories and System spec.
      - Remove navigator.fileMgr.deleteFile(fileName) function.  To delete a
        file, use the Entry.remove() method, which is part of the File API:
        Directories and System spec.
      - Remove navigator.fileMgr.deleteDirectory(dirName) function.  To
        delete a directory, use the Entry.remove() (if it is empty), or
        DirectoryEntry.removeRecursively() methods, which are part of the
        File API: Directories and System spec.
    Clean up existing FileManager native code.  Move some functionality to
    file utility class.
Commits on Mar 1, 2011
  1. Add PluginResult constructor.

    jtyberg committed Mar 1, 2011
    public PluginResult(PluginResult.Status, long) {...}
Commits on Feb 3, 2011
Commits on Feb 2, 2011
  1. Version 0.9.4.

    jtyberg committed Feb 2, 2011
Commits on Jan 31, 2011
  1. Fix Contacts.prototype.create to create Contact object properly.

    jtyberg committed Jan 31, 2011
    Thank you, mobile_spec.
Commits on Jan 30, 2011
  1. Ticket #15 - Name all JavaScript directories 'javascript'

    mwbrooks committed Jan 30, 2011
    Purely for consistency.
  2. Ticket #14 - Minify JavaScript at project creation / update.

    mwbrooks committed Jan 29, 2011
    Minification happens at project creation / update
    instead of deployment.
    - ant create -Dproject.path=...
    - ant update -Dproject.path=...
    Generates Files
    - phonegap.x.x.x.js
    - phonegap.x.x.x.min.js
    The license is still prepended to the minified file.
    PhoneGap Example
    The phonegap.x.x.x.min.js is used by index.html
    Both JavaScript files are added to the project.
Commits on Jan 29, 2011
  1. Ticket #14 - Build to to build/ instead of lib/

    mwbrooks committed Jan 29, 2011
    This is in preparation for using the yui-compressor
    to minify phonegap.js when creating and updating
    a project.
  2. Ticket #5 - Add versioning to JavaScript and Jar.

    mwbrooks committed Jan 28, 2011
    To increment the version, simply update the file VERSION
    and run the create or update task.
    Update Task Changes
    - The update task is not longer automatic.
    - The updated PhoneGap library is now installed to:
        - /<project>/lib/phonegap.x.x.x/
    - The update task has detailed installation instructions.
    - This isn't a big step backwards, because the previous update
    - task was rarely fully automatic because most developers move
      the JavaScript file elsewhere.
  3. Add build tasks to generate and update a plugin.

    mwbrooks authored and jtyberg committed Jan 27, 2011
    Huge thanks to jtyberg because the build tasks
    and directory structure are based on his work.
    - Added ANT task: create-plugin
      - Generates basic, but fully functional plugin
      - Includes Java and JavaScript implementation
      - Includes ANT script to build plugin
    - Added ANT task: update-plugin
      - Updates the build.xml for a plugin
      - Does not update the plugin source code
    - Updated phonegap-blackbery-webworks ANT output formatting
      - The helpful output messages standout a little more now
      - Used the same formatting for the plugin script's output
Commits on Jan 28, 2011
  1. Add support for

    jtyberg committed Jan 28, 2011
    Set using either base64 encoding or url.  Get base64 encoding.
  2. Add file utility methods.

    jtyberg committed Jan 28, 2011
Commits on Jan 26, 2011
Commits on Jan 24, 2011
  1. Register application-specific device notification profile (playback c…

    jtyberg committed Jan 24, 2011
    …ontrolled by phone user).
  2. Generate GUID from application name.

    jtyberg committed Jan 24, 2011
    A unique GUID is required for applications to be able to send notification events or log messages to the BB Event Log that are specific to the application.
Commits on Jan 18, 2011
  1. Update README.

    jtyberg committed Jan 18, 2011
Commits on Jan 17, 2011