summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-06 14:34:29 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-06 14:34:29 +0200
commitc2582930a75aa7564290d7ba6e1a7e5f93e73ffb (patch)
treea8bb6621316ad7423f0ab59d3c64035baf8c69fd
parent8f7d1833f6e6b304e706bb84848dbf86a80834c8 (diff)
downloadsnap-c2582930a75aa7564290d7ba6e1a7e5f93e73ffb.tar.gz
snap-c2582930a75aa7564290d7ba6e1a7e5f93e73ffb.zip
prepare for packaging for android using cordova
-rw-r--r--config.xml15
-rw-r--r--mobile.sh9
2 files changed, 24 insertions, 0 deletions
diff --git a/config.xml b/config.xml
new file mode 100644
index 0000000..d78e26d
--- /dev/null
+++ b/config.xml
@@ -0,0 +1,15 @@
+<?xml version='4.0' encoding='utf-8'?>
+<widget id="edu.berkeley.snap" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+ <name>Snap!</name>
+ <description>
+ Snap! Build Your Own Blocks
+ A visual, blocks based programming language inspired by Scratch
+ </description>
+ <author email="jens@moenig.org" href="http://snap.berkeley.edu">
+ Jens Mönig and Brian Harvey
+ </author>
+ <content src="snap.html" />
+ <access origin="*" />
+ <preference name="Fullscreen" value="true" />
+ <icon src="www/snap_logo_sm.png" platform="android" />
+</widget>
diff --git a/mobile.sh b/mobile.sh
new file mode 100644
index 0000000..b794b52
--- /dev/null
+++ b/mobile.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+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 build android