Exercise: Getting Started with Kapsel-part 1 (SP9)
Http://scn.sap.com/docs/DOC-65386
Preparing for the development environment
Official documents are found here:
SMP 3.0 SDK Reference HTTP://HELP.SAP.COM/SMP309SDK?CURRENT=SMP309SDK
Click Kapsel Development
Click Setting up the development environment
=========================
Installing JDK 1.8 64-bit
Android
Install a Java JDK such as Jdk-8u45-windows-x64.exe.
=========================
Install Android Studio 2.1 (including Android SDK and Android emulator)
=========================
Settings in the system environment
SET ANDROID_HOME=D:\ANDROID\SDK
Path=d:\android\sdk\tools;%java_home%\bin, ............
=========================
Installing Node 4.4.1
=========================
Installing Cordova
NPM Uninstall Cordova-g
NPM install-g cordova@5.1.1
NPM Info Cordova
Cordova-v
5.1.1
=========================
Create a project
D:
CD \
MD kapsel_projects
CD kapsel_projects
REM Description: Explanation of Commands–cordova Create Cordova Create HelloWorld Com.example.helloworld "HelloWorld"
CD HelloWorld
Cordova-d Platform Add Android
Cordova-d Prepare Android
=========================
REM Use the Cordova Prepare command to copy that content into the Android, IOS, and Windows project folders:
Cordova Prepare Android
REM Build Project
Call Cordova Build
REM copies the apk to the current directory, ready to install to the Android emulator or post it to the Afaria Enterprise store for testing
Call copy platforms\android\build\outputs\apk\android-debug.apk.
Dir *.apk
=========================
REM test on the simulator to create a good name for the simulator called Androd53
D:
Set path=d:\android\sdk\tools;d:\android\sdk\platform-tools;%path%
Call Emulator @Android53
=========================
REM install Android App
D:
Set path=d:\android\sdk\tools;d:\android\sdk\platform-tools;%path%
Call adb install android-debug.apk
=========================
REM Uninstall Android App
Call adb uninstall Com.example.helloworld