Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 2.88 KB

File metadata and controls

56 lines (38 loc) · 2.88 KB

Step 1: Install your development tools

The Chrome Apps for mobile toolchain can target iOS 6+ and Android 4.x+.

Development dependencies for all platforms

  • Node.js version 0.10.0+ (comes with npm) is required:
    • Windows: Install Node.js using the installation executables downloadable from nodejs.org.

    • OS X or Linux: Installation executables are also available from nodejs.org. If you wish to avoid the need for root access, it may be more convenient to install via nvm. Example:

          curl https://raw.github.com/creationix/nvm/master/install.sh | sh
          source ~/.bash_profile || source ~/.profile || source ~/.bashrc
          nvm install 0.10
          nvm alias default 0.10
      

Targeting Android

When developing an application for Android, you will also need to install:

  • Java JDK 7
  • Android SDK version 4.4.2 (or higher)
    • Install the Android SDK and Android Developer Tools which come bundled with Android ADT Bundle.
    • Add sdk/tools and sdk/platform-tools to your PATH environment variable.
    • OS X: The version of Eclipse that comes with the Android SDK requires JRE 6. If opening Eclipse.app does not prompt you to install JRE 6, get it through the Mac App Store.
    • Linux: The Android SDK requires 32 bit support libraries. On Ubuntu, get these via: apt-get install ia32-libs.
  • Apache Ant
    • Add apache-ant-x.x.x/bin to your PATH environment variable.

Targeting iOS

Please note that iOS development can only be done on OS X. In addition, you will need to install:

  • Xcode 5 which includes the Xcode command line tools
  • ios-deploy (needed to deploy to an iOS device)
    • npm install -g ios-deploy
  • ios-sim (needed to deploy to iOS Simulator)
    • npm install -g ios-sim
  • Optional: Register as an iOS developer
    • This is necessary for testing on real devices and for submitting to the app store.
    • You can skip registration if you only plan to use the iPhone/iPad simulators.

Install the cca Command-line Tool

Install cca via npm:

npm install -g cca

To update the toolchain later with new releases: npm update -g cca.

Confirm that everything is installed correctly by running this command from the command line:

cca checkenv

You will see the version number of cca outputted and confirmation about your Android or iOS SDK installation.

Done? Continue to Step 2: Create a project »