To build Kapsel applications, you must first set up your development environment, which includes installing both SAP Mobile Platform Server, and the SAP Mobile Platform SDK.
See http://service.sap.com/pam to verify that you are using the supported versions for the Kapsel development environment.
Android tools run on Windows, Linux, and OS X. To build Kapsel apps for Android, you need:
See the Apache Cordova documentation at http://cordova.apache.org/docs/en/3.0.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide for more information about getting started with Android.
See http://www.oracle.com/technetwork/java/javase/downloads/index.html.
After installing the Java SDK, define the JAVA_HOME environment variable.
Set up the Android Development Environment by downloading the required plugins.
If you prefer to work in an IDE other than Eclipse, you do not need to install Eclipse or ADT. You can simply use the Android SDK tools to build and debug your application.
The Google USB Driver for Windows is as an optional SDK component you need only if you are developing on Windows and want to connect a Google Android-powered device (such as a Nexus 7) to your development environment over USB.
Download the Google USB driver package from http://developer.android.com/sdk/win-usb.html.
Install the Android SDK for plugin use with your IDE.
On Windows, add <Android SDK Location>\tools to the PATH environment variable
On OS X, the command is: export PATH=$PATH:<path to Android SDK>/tools
To build Kapsel apps for iOS, you need:
See the Apache Cordova documentation at http://cordova.apache.org/docs/en/3.0.0/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide for more information about getting started with iOS.
Download and install Xcode from the Apple Developers Web site.
See http://git-scm.com/book/en/Getting-Started-Installing-Git.
On Windows:
git config --global http.proxy http://proxy:8080 git config --global https.proxy http://proxy:8080
On Mac:
sudo git config --global http.proxy http://proxy:8080 sudo git config --global https.proxy http://proxy:8080
Use Node.js v0.10.11 and later, and its package manager, npm, to install Apache Cordova. See http://nodejs.org/. You can see the version installed by using the node command: node –v.
You must add the Node.js folder to your system PATH.
On Windows:
npm config set proxy http://proxy_host:port npm config set https-proxy http://proxy_host:port
On Mac:
sudo npm config set proxy http://proxy_host:port sudo npm config set https-proxy http://proxy_host:port
See http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface. Follow all of the steps in the Cordova command line interface readme.md.
On Windows: npm install -g cordova@<latest_supported_version>
On Mac: sudo npm install -g cordova@<latest_supported_version>
For example, to install the Cordova command line interface version 3.0.9, enter:
npm install -g cordova@3.0.9
-g indicates that Apache Cordova should be installed globally.
sudo chown -R user_name /usr/local/lib/node_modules/cordova
You can copy the command text from the error message and paste it in at the command prompt at the bottom of the terminal window.
The output shows the Cordova version installed, for example, 3.0.9.
You should also scroll back through the entire installation history shown in the terminal and look for errors to verify the installation was successful.
To allow the Cordova command line to start the iOS simulator on Mac, you must install ios-sim.
The output shows the ios-sim version installed, for example, 1.8.2.