This commit is contained in:
gine 2017-03-24 03:05:03 +01:00
parent 5740a77ed5
commit 14997d61ff

View file

@ -3,11 +3,52 @@ App per xm, prende i contenuti dal sito e te li salva nel cellulare.
<img src="http://git.lattuga.net/hacklabbo/Ilovexm24/raw/174939a682216d735bb1aebd89b547e1912318aa/screenshot1.png" style="border:solid 1px black;border-radius:20px;" />
## Environment ##
cordova plugin add cordova-plugin-splashscreen
Hai bisogno di Nodejs, ADK (android developer kit) e Cordova CLI: http://www.digitigrafo.it/module/1249
### NodeJs ###
add gpg key using
`curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -`
add APT repo (verify/create) nodesource.list file in /etc/apt/sources.list.d with:
```
deb https://deb.nodesource.com/node_6.x jessie main
deb-src https://deb.nodesource.com/node_6.x jessie main
```
Alternative setup (it supports Kali, Debian, Mint, ...):
`sudo curl -sL https://deb.nodesource.com/setup_6.x | bash -`
(it supports Kali, Debian, Mint, ...)
Cleanup:
`apt-get purge nodejs`
Refresh:
`apt-get update && apt-get install nodejs nom`
ADK (android developer kit) e
### Cordova CLI ###
Cordova si intalla con npm, packager di nodejs
`npm install -g cordova`
### Android tool ###
ADK (android developer kit)
P.S. Con l'ultima versione di Android Studio è necessario scaricare a mano gli [android tools](https://dl.google.com/android/repository/tools_r25.2.3-linux.zip).
### Appunti ###
http://www.digitigrafo.it/module/1249
## Build del progetto ##
`cordova platform rm android`
@ -25,9 +66,11 @@ Per aggiungere la piattaforma nuova. Durante questa operaionze i seguenti plugin
* cordova-sqlite-storage
* phonegap-plugin-push
`cordova plugin add cordova-plugin-network-information \
cordova-plugin-x-socialsharing \
cordova-plugin-splashscreen`
```
cordova plugin add cordova-plugin-network-information \
cordova-plugin-x-socialsharing \
cordova-plugin-splashscreen
```
Forse non serve, ma l'howto di [cordova-plugin-x-socialsharing](https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin) dicono di farlo: