This repo contains tools for creating Chrome Packaged Apps that run as native Android and iOS applications through Apache Cordova.
Set yourself up for mobile app development on iOS or Android.
-
For iOS, you will need to have XCode 4 installed, with the iOS SDK.
-
For Android, download and install the Android Development Kit. You will need to ensure that the 'android' and 'adb' commands are in your path. Download and install the Android 4.2.2 SDK, and the Google Play Services APIs.
Install a recent version of node.js (Node 0.6.x, which ships with several Linux distributions, is too old for the current tooling)
There is a script that will do this for you!
Download the mca-create.js script and run it:
node mca-create.js
Now that you've cloned the repository, navigate to it and use the following command to generate a project:
node mca-create.js com.company.MyAppName
The easiest way to run the project is through an IDE.
- On iOS:
- Open the project file, which is located at
MyAppName/platforms/ios/MyAppName.xcodeproj
.
- Open the project file, which is located at
- On Android, there are a couple more (straight-forward) steps:
- First, import the project into Eclipse by selecting
Import
from the Package Explorer context menu. - In the resulting dialog, choose
Android
->Existing Android Code Into Workspace
and clickNext >
. - Click
Browse...
, navigate toMyAppName/platforms/android
, clickOpen
, and thenFinish
. - Finally, add the Google Play Services library as outlined here.
- First, import the project into Eclipse by selecting
Your HTML & JS files live within the app/www
directory. Every time you change them,
you must run the mca-update
script located in the root of your project.