The standard location to install the SpotJams dev codes is: $HOME/spotjams
clone all of the github repos into this directory
mkdir $HOME/spotjams
cd $HOME/spotjams
git clone [email protected]:verdverm/cordova-plugins
git clone [email protected]:verdverm/sj-www-app
git clone [email protected]:verdverm/sj-mob-app
- oracle java
- nodejs
- npm
- cordova
- cordova plugman
Download and extract the above 2 packages into your spotjams
folder
add the following to your .bash_profile
export ANDROID_BIN=$HOME/spotjams/android-sdk-linux/tools:$HOME/spotjams/android-sdk-linux/platform-tools
export PATH=${PATH}:$ANDROID_BIN
Run the android sdk manager and add some stuff... (defaults are probably fine)
Install SDK Tools / platform for APIs 19,21,22
android sdk
adb kill-server
adb start-server
Setting up cordova
sudo npm install -g cordova plugman
cd $HOME/spotjams/sj-mob-apprms
mkdir plugins platforms
cordova platform add android
cordova plugin add ../cordova-plugins/cordova-plugin-media --link
cordova plugin add org.apache.cordova.device
cordova plugin add org.apache.cordova.camera
cordova plugin add org.apache.cordova.media-capture
cordova plugin add org.apache.cordova.file
cordova plugin add org.apache.cordova.file-transfer
cordova plugin add org.apache.cordova.splashscreen
cordova plugin add org.apache.cordova.console
cordova plugin add de.neofonie.cordova.plugin.nativeaudio
cd platforms/android/CordovaLib
rm -rf *
cp $HOME/spotjams/crosswalk-cordova-11.40.277.7-arm/framework/* $HOME/spotjams/sj-mob-app/platforms/android/CordovaLib
export ANDROID_HOME=$(dirname $(dirname $(which android)))
cd $HOME/spotjams/sj-mob-app/platforms/android
android update project --subprojects --path . --target "android-21"
cd ../..
cordova build android
from the sj-mob-app directory
ln -s ../sj-www-app www
- XCode
- cordova
- ios-sim
sudo npm install -g cordova plugman ios-sim
Run setup_nix.sh