summaryrefslogtreecommitdiff
path: root/mobile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mobile.sh')
-rwxr-xr-xmobile.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/mobile.sh b/mobile.sh
new file mode 100755
index 0000000..656b7dc
--- /dev/null
+++ b/mobile.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+# Requirements:
+# git, nodejs, android SDK / other platform(s)
+# cordova (https://cordova.apache.org/)
+
+# binaries are in platform/android/ant-build/Snap-debug.apk
+
+cordova create Snap-Mobile edu.berkeley.snap "Snap\!"
+cd Snap-Mobile
+rm -rf www config.xml
+git clone https://github.com/Gubolin/snap.git www
+cd www
+git checkout mobileapp
+cordova platform add android
+cordova plugin add org.apache.cordova.plugin.softkeyboard
+cordova plugin add org.apache.cordova.vibration
+cordova plugin add org.apache.cordova.device-motion
+cordova plugin add org.apache.cordova.device-orientation
+cordova plugin add org.apache.cordova.geolocation
+cordova build android