- Install the android SDK: http://developer.android.com/sdk/
- Install the latest Java JDK: http://www.oracle.com/technetwork/java/javase/downloads/
This client requires a proxy API to the EchoJS api. Install and run the server before running this client: https://github.com/badsyntax/echojs-mobile-server
## npm scripts
npm start
- Start the project in dev mode, available at http://localhost:8000npm run build
- Build the project in dev modenpm run build:release
- Build the project for releasenpm run emulate
- Open the mobile emulator in dev modenpm run emulate:release
- Open the mobile emulate in release modenpm run deploy
- Runs a release build and deploys to an Android device
Note: these steps can be run with npm run deploy
Android requires that all apps be digitally signed with a certificate before they can be installed.
- Enable USB debugging on your Android device.
- Run
npm run build:release
to build the apk. - Sign the apk: (Keystore password is: echojs)
cd client/platforms/android/ant-build
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keystores/EchoJS.keystore EchoJS-release-unsigned.apk EchoJS
- Install the apk with the
adb
tool:
~/Library/Android/sdk/platform-tools/adb install app/client/platforms/android/ant-build/EchoJS-release-unsigned.apk