forked from QuantiModo/quantimodo-android-chrome-ios-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_android_app.sh
65 lines (50 loc) · 2.2 KB
/
build_android_app.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
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
# Run from root of Ionic repo
# Install docker per https://docs.docker.com/engine/installation/linux/ubuntulinux/
apt-get update
apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# Delete everything in /etc/apt/sources.list.d/docker.list
# Add `deb https://apt.dockerproject.org/repo ubuntu-trusty main` to /etc/apt/sources.list.d/docker.list
apt-get update
apt-get purge lxc-docker
apt-cache policy docker-engine
# Install Docker
sudo apt-get update
sudo apt-get install -y linux-image-extra-$(uname -r)
sudo apt-get install -y docker-engine
sudo service docker start
# sudo docker run hello-world
# Don't require sudo
sudo usermod -aG docker vagrant
# Log in and out
# docker run hello-world
# Fix Swap
# Edit the /etc/default/grub file and set the GRUB_CMDLINE_LINUX value as follows: `GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1`
# sudo update-grub
# https://hub.docker.com/r/mkaag/ionic/ -> Unable to locate package oracle-java7-installed
# /~https://github.com/nicopace/ionic-cordova-android-vagrant-docker -> nicopace/ionic-cordova-android-vagrant-" is not a valid repository/tag
# /~https://github.com/gleclaire/docker-ionic-framework -> Error: Please install Android target: "android-22"
# https://hub.docker.com/r/agileek/ionic-framework/
sudo docker run -ti -p 8100:8100 -p 35729:35729 -v /vagrant/public.built/ionic/Modo/:/myApp gleclaire/ionic-framework /bin/bash
android list sdk --all
# Android SDK Build-tools, revision 23.0.2
android update sdk -u -a -t 6
# Google APIs, Android API 23, revision 1
android update sdk -u -a -t 109
# SDK Platform Android 6.0, API 23, revision 2
android update sdk -u -a -t 28
# Sources for Android SDK, API 23, revision 1
android update sdk -u -a -t 142
# Android Support Libraries
android update sdk -u -a -t 153
android update sdk -u -a -t 154
# Android target 22
android update sdk -u -a -t 26
android update sdk -u -a -t 4
android update sdk -u -a -t 2
# npm install -g ionic
npm install -g ionic
ionic plugin add cordova-plugin-inappbrowser
ionic plugin add /~https://github.com/apache/cordova-plugin-whitelist.git
ionic build android