diff --git a/README.md b/README.md index 5fa57ee..cc9ba0f 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,52 @@ App per xm, prende i contenuti dal sito e te li salva nel cellulare. ## 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: