CLI Packager for SAP Fiori Apps
The CLI packager (Fiori Mobile Packager or packager) for SAP Fiori apps is a Node.js application that is delivered with the SAP Mobile Platform SDK. It enables you to download existing SAP Fiori apps and package them into a Cordova container for iOS or Android. Packaged apps are presented as tiles within a launchpad.
The packaged app contains the JavaScript and HTML assets (plus images, message strings, and so on) as local resources that are loaded directly into the Cordova WebView. Because only the business data requires network resources, packaging delivers a more robust user experience. Packaging also allows certain SAP Fiori apps be used in offline mode. In this case, SAP Mobile Platform initializes the creation of the local offline store and provides the offline OData service that periodically synchronizes the business data between the back end and the client offline store. The local offline store is encrypted with a generated key stored in the datavault provided with the Logon plugin.
The packager uses the SAP Cloud Platform mobile service for SAP Fiori cloud build service API to drive a Cordova-style build. The apps can be distributed to users and mobile devices using SAP Mobile Place. Alternatively, developers with Cordova knowledge may choose to create and build their own local Cordova project using the packager output.
High level work flow
- Use the SDK Packager to package applications hosted on on-premise servers.
- Deliver the package to the cloud build service using the packager command-line utility (CLI).
- The cloud build service executes the 'build' step that creates the requested device specific binaries, for example, an IPA file for iOS; an APK for Android.
- Sign and distribute the binaries using your own MDM or any other capability you might have for signing and distributing the binaries
- Use Mobile Secure to upload the binary and have it signed using your existing Mobile Secure account