...
Configure the uMobile Source
Install Dependencies
- In a Terminal window, navigate to your project location. For this tutorial, our project is housed under the Documents > umobile-phonegap-ios directory.
- In the same Terminal window, navigate to the umobile-ui directory.
Execute the following command to load all the ui dependencies. Note: Node must be installed.
Code Block sudo npm install
Configure Authentication
- uMobile currently supports three different authentication strategies: CAS, Local & Mock.
- Each strategy has a cooresponding configuration file under the umobile-ui/config/js directory (i.e., cas.js, local.js and mock.js).
- Choose one of the three authentication strategies. For this documentation, we will use local.js.
- Open local.js.
- Set config.uMobileServerUrl to http://localhost:8080.
- Set config.loginFn to localLogin.
- Set config.uMobileServerUrl to http://localhost:8080.
Configure Build Process
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 Android, iOS 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
- ...
...