Smartrack
Sometimes you just want to build an app that statically bundles all of your microsoft documents so they can be read offline from within the app itself. This Cordova project lets you do that.
To use it, you'll have to download the Android SDK and Cordova, and these instructions will show you how to do just that.
The Procedure
Generally, the procedure for building this app goes as follows (details for each step is in a section below):
- Validate the macosx environment; you'll need to install homebrew. Install ant, curl, md5sum.
- Use git to clone the smarttrack repository
- Download and extract the Android SDK.
- Download and install Node.
- Download and extract the Cordova command line utilities.
- Point the www directory to the correct source
- Make sure the javascript is correct
- Build and test the app
Use git to clone the smarttrack repository
This repository is housed in github. Use git to clone it to your local machine.
mkdir -p ~/Projects/itp/ # You can put this wherever you like
git clone https://github.com/johnnylambada/smartrack.git
cd smartrack
pwd # This is the home directory for your project
Validate the macosx environment
The OSX environment may require some additional tools. Generally these can be obtained using homebrew.
cd ~/Projects/itp/smarttrack
source scripts/envsetup.sh
validate
If phase 0 passes, then you're ready to move on to downloading the Android SDK.
Download and set up the Android SDK
We're going to download a private copy of the Android SDK. If you already have a copy of the SDK, feel free to use it instead.
cd ~/Projects/itp/smarttrack
source scripts/envsetup.sh
download-android-sdk
Download and install Node
More here. Download and install Cordova
More here.
Initial project setup commands
These are the commands to initially set up a new project.
cordova create app com.sigseg.fred FredFlintstone
cordova platform add ios
cordova platform add android
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git
...