Mobile App/Cordova Development Notes: Difference between revisions
No edit summary |
|||
Line 35: | Line 35: | ||
*** http://developer.android.com/sdk/index.html | *** http://developer.android.com/sdk/index.html | ||
*** C:\Users\Stéphane\AppData\Roaming\npm;C:\Users\Stéphane\AppData\Local\Android\android-sdk\tools;C:\Users\Stéphane\AppData\Local\Android\android-sdk\tools;C:\Users\Stéphane\AppData\Local\Android\android-sdk\platform-tools | *** C:\Users\Stéphane\AppData\Roaming\npm;C:\Users\Stéphane\AppData\Local\Android\android-sdk\tools;C:\Users\Stéphane\AppData\Local\Android\android-sdk\tools;C:\Users\Stéphane\AppData\Local\Android\android-sdk\platform-tools | ||
"error failed to run javac -version make sure" | |||
Java JDK | Java JDK | ||
* http://www.oracle.com/technetwork/java/javase/downloads/index.html | * http://www.oracle.com/technetwork/java/javase/downloads/index.html | ||
* JAVA_HOME : C:\Program Files\Java\jdk1.8.0_20 | |||
* add to PATH : C:\Program Files\Java\jdk1.8.0_20\bin | |||
== Cordova plugins == | == Cordova plugins == |
Revision as of 21:09, 11 October 2014
This page contains notes regarding the development of the Open Food Facts mobile apps.
The current Open Food Facts apps for iOS, Android and Windows Phone use Apache Cordova (previously known as Phonegap).
Cordova: http://cordova.apache.org/
Installing Cordova 3.6 : http://cordova.apache.org/docs/en/3.6.0/guide_overview_index.md.html
http://cordova.apache.org/docs/en/3.6.0/guide_cli_index.md.html#The%20Command-Line%20Interface
Following notes are for the Windows Platform, but most of it probably applies for Mac or Linux.
Install Node.js
- http://nodejs.org/
- Current Version: v0.10.32
Install git client
Install Cordova
in git-bash client:
- npm install -g cordova
cordova -v : 3.6.3-0.2.13
- "error android_home is not set and android command not in your path" when doing "cordova platform add android"
- Install Eclipse ADT (Note : for win8 32bit/64bit install 32bit ADT)
- Setup Environment Variables :
- Add to existing system variable "path" : <path to adt-bundle\sdk\tools>;<path to adt-bundle\sdk\platform-tools>
- http://docs.phonegap.com/en/edge/guide_platforms_android_index.md.html
- http://developer.android.com/sdk/index.html
- C:\Users\Stéphane\AppData\Roaming\npm;C:\Users\Stéphane\AppData\Local\Android\android-sdk\tools;C:\Users\Stéphane\AppData\Local\Android\android-sdk\tools;C:\Users\Stéphane\AppData\Local\Android\android-sdk\platform-tools
"error failed to run javac -version make sure"
Java JDK
- http://www.oracle.com/technetwork/java/javase/downloads/index.html
- JAVA_HOME : C:\Program Files\Java\jdk1.8.0_20
- add to PATH : C:\Program Files\Java\jdk1.8.0_20\bin
Cordova plugins
- http://plugins.cordova.io/#/package/com.phonegap.plugins.barcodescanner
- https://moodstocks.com/docs/phonegap/using-the-moodstocks-sdk-in-your-phonegap-application/
Firefox OS
- https://developer.mozilla.org/en-US/Firefox_OS/Using_the_App_Manager
- https://github.com/gasolin/qrcode_scanner/
- https://github.com/SunboX/QR-Reader