Skip to content
This repository was archived by the owner on Jul 10, 2018. It is now read-only.

Building Native Apps

Rich Trott edited this page Aug 10, 2013 · 14 revisions

Prerequisites

  • PhoneGap CLI: npm install -g phonegap
  • Either register for an Adobe ID for PhoneGap Build or install all desired SDKs (iOS, Android, etc.) locally.
  • If you wish to deploy apps to the iOS Simulator, install ios-sim.

Configuring Your Native App Build

  • Copy over campuskit_templates/demo to your site's name. (This would be the name you chose for your site in the sites directory.)
  • Edit config.xml and provide the images needed for your target devices.

Building Your Native App

  • grunt --platform=phonegap --site=YOUR_SITE
  • cd phonegap
  • To build with locally installed SDKs: phonegap local build PLATFORM where PLATFORM is ios, android, etc.
  • To build with PhoneGap Build instead: phonegap remote build PLATFORM

Gotchas

  • All local paths (e.g., href and src attributes on your site specifying other assets on your site) need to be relative paths.
  • Links need to go to index.html, not just the directory.

Clone this wiki locally