To build Hybrid SDK (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 https://support.sap.com/release-upgrade-maintenance/pam.html
to verify that you are using the supported versions for the Hybrid SDK (Kapsel)
development environment.
To build Hybrid SDK (Kapsel) apps for Windows 8.1, you need:
Android tools run on Windows, Linux, and OS X. To build Hybrid SDK (Kapsel) apps for Android, you need:
See the Apache Cordova documentation at http://cordova.apache.org/docs/en/5.1.1/guide/platforms/android/index.html
for more information about getting started with Android.
Download the Java Standard Edition Development Kit from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html.
After installing the JDK, define the JAVA_HOME environment variable according to the JDK installation path (for example, C:\Program Files\Java\jdk1.7.0_75).
Android Studio includes the Android Studio IDE and the Android SDK tools.
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
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.
To build Hybrid SDK (Kapsel) apps for iOS, you need:
See the Apache Cordova documentation at
http://cordova.apache.org/docs/en/5.1.1/guide/platforms/ios/index.html
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
systemProp.http.proxyHost=proxy systemProp.http.proxyPort=8080 systemProp.http.nonProxyHosts=*.sap.corp|localhost systemProp.https.proxyHost=proxy systemProp.https.proxyPort=8080 systemProp.https.nonProxyHosts=*.sap.corp|localhost
See http://cordova.apache.org/docs/en/5.1.1/guide/cli/index.html. 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>
The supported version of Cordova CLI for SAP Mobile Platform SDK 3.0 SP10 is 5.2.0. To install this Cordova command line interface version, enter:
npm install -g cordova@5.2.0
-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, 5.2.0.
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.