Code named Duboce, the mobile app consists of a basic wrapper for One Degree's resource server of community opportunities & organizations.
If not yet installed, install homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install node
npm install -g cordova
Download the Android SDK here and follow the instructions for installation.
Ensure Xcode is installed.
Clone the repo locally:
git clone git@github.com:1deg/mobile-app.git
First build the Android package:
cordova build (android|ios)
Then emulate it:
cordova emulate (android|ios)
This is the documentation for One Degree's resource server.
Run the Cordova build command with the release flag.
cordova build --release android
In the following steps, reference the unsigned built package, which is probably now at platforms/android/ant-build/Duboce-release-unsigned.apk.
Sign the release version of the apk file with the existing One Degree certificate (don't create a new one).
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore PATH_TO/onedegree.keystore PATH_TO/Duboce-release-unsigned.apk onedegree
Verify signing has been successful by running:
jarsigner -verify PATH_TO/Duboce-release-unsigned.apk
Check the Android app signing reference if you have any questions.
Before uploading the new package to the Play store, zip align the package:
zipalign -v 4 PATH_TO/Duboce-release-unsigned.apk Duboce.apk
That's it.