-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_ios.sh
executable file
·55 lines (42 loc) · 1.29 KB
/
setup_ios.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# Set this veriable to the location of the spotjams directory ($HOME/spotjams by
# default)
SPOTJAMS_DIR=$HOME/spotjams
# Prepare the required platforms/ plugins/ and www/ directories
cd $SPOTJAMS_DIR/sj-mob-app
if [[ ! -d platforms/ ]]; then
mkdir platforms/
fi
if [[ ! -d plugins/ ]]; then
mkdir plugins/
fi
if [[ ! -d www/ ]]; then
if [[ ! -d ../sj-www-app/ ]]; then
echo "sj-www-app not found..."
echo "check out the sj-www-app git repository into $SPOTJAMS_DIR"
exit 2
fi
ln -s ../sj-www-app/www www
fi
# add bower dependencies for www code
if [[ ! -d www/vendor/bower_components ]]; then
echo "adding bower deps"
cd www/vendor
bower update
cd ../..
fi
# Add plugins to cordova
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.console
cordova plugin add de.neofonie.cordova.plugin.nativeaudio
#### TODO #####
# http://stackoverflow.com/a/29873742/2366390
# Add the android platform for cordova
cordova platform add ios
# Create an Xcode project file
cordova prepare