Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configure the uMobile Source

Install Dependencies
  1. In a Terminal window, navigate to your project location. For this tutorial, our project is housed under the Documents > umobile-phonegap-ios directory.
  2. In the same Terminal window, navigate to the umobile-ui directory.
  3. Execute the following command to load all the ui dependencies. Note: Node must be installed.

    Code Block
    sudo npm install
    
Configure Authentication
  1. uMobile currently supports three different authentication strategies: CASLocal & Mock.
    1. Each strategy has a cooresponding configuration file under the umobile-ui/config/js directory (i.e., cas.jslocal.js and mock.js).
    2. Choose one of the three authentication strategies. For this documentation, we will use local.js.
    3. Open local.js.
      1. Set config.uMobileServerUrl to http://localhost:8080.
      2. Set config.loginFn to localLogin.
Configure Build Process
  1. Run the build process for the uMobile source code. The build process configures the uMobile source code with the necessary dependencies needed to run in a given environment. Currently, the uMobile project supports AndroidiOS and Web platforms. Once the build completes a www directory will be added to the umobile-ui directory. The www directory houses the production ready code base to be used with the PhoneGap wrapper. Please see the documentation on the uMobile HTML5 build for more information on configuring the build script.

    Code Block
    grunt prod --environment=ios --auth=local
  2. ...

...