SAP Fiori Client Guide

Configuring the Script

Modify the configuration file for the config.json script with the values for your project.

Prerequisites

The default installation of the SAP Mobile Platform SDK has a folder structure similar to the following:

C:\SAP\MobileSDK3\KapselSDK
C:\SAP\MobileSDK3\KapselSDK\plugins
C:\SAP\MobileSDK3\KapselSDK\apps\fiori_client

The plugins folder contains a folder for each Kapsel plugins. The apps/fiori_client folder contains the script file you use to create an instance of the SAP Fiori Client. The script assumes that the Kapsel plugins are in the relative folder structure shown above. If you have moved the script file or modified the folder structure, you must edit the script file and change the relative paths in the shell commands used to interact with the Cordova command line interface (CLI).

Procedure

  1. Edit the config.json configuration file for the script using the values for your project. Provide values in a format similar to the following:
    {
        "packageName": "com.sap.fiori.client",
        "targetFolder": "FioriClient",
        "appName": "FioriClient",
        "platforms": ["ios", "android", "windows"]
    }
  2. For improved performance on Android, configure the Fiori Client to use Crosswalk to render HTML pages, rather than the Android webview.

    To use Crosswalk, add the additional crosswalkLocation parameter and add a comma to the end of the previous line.

    {
        "packageName": "com.sap.fiori.client",
        "targetFolder": "FioriClient",
        "appName": "FioriClient",
        "platforms": ["ios", "android"],
        "crosswalkLocation" : "C:\\Crosswalk\\crosswalk-cordova-10.39.235.15-arm\\bin"
    }

    (optional) To add x86 support, copy the folder:

    C:\Crosswalk\crosswalk-cordova-10.39.235.15-x86\framework\xwalk_core_library\libs\x86
    

    to:

    C:\Kapsel_Projects\CrosswalkDemo\CordovaLib\xwalk_core_library\libs
    

    For more information about using Crosswalk to build Cordova applications, see https://crosswalk-project.orgInformation published on non-SAP site.