Building the Meter Management Component Overview
Use the following information as a reference when building your application using the procedure Branding the Meter Management Component for SAP Asset Manager.
Structure of .mdkproject
-
BrandedSettings.json: Runtime configurations such as security settings, URLs for connecting to the SAP Business Technology Platform Mobile Services, and more
-
MDKProject.json: Build time configurations such as the application name, version, and bundle ID
-
App_Resources: Any custom resources used by the application
-
demo: To make an OData service available in demo mode, include the .udb and .rq.udb files for that service in this directory
-
extensions: Include any extensions used by the application in this directory
-
metadata: Built in metadata for the application
Configuring the MDKProject.json File
The MDKProject.json file contains settings that you can only configure before running the create-client.command:
-
AppName: Determines the name of the application project and the app as it appears on an iOS device
-
AppVersion: The client project application version
-
BaseProject: The metadata subdirectory under the .mdkproject structure that contains the main application metadata. The main application metadata is the MDK application, which includes one or more component MDK applications. The component applications are only required if you are adding components to your base application, such as Meter Management or Field Operations Worker.
-
BundleID: Uniquely identifies the resulting MDK client application on the device. Only one instance of a bundle ID can be installed on a device at a time. If you attempt to install a second application using the same bundle ID, it will overwrite the existing application.
-
Externals: A list of NPM nodules that should not be included in the application bundle. Use this option for dependencies you expect to be in the environment when the application is built.
Note that the modules file-system and ui/dialogs are automatically used as externals as they are already included in the client application.
-
URLScheme: Allows you to specify a custom URL scheme that opens the client. If the URL includes connection settings such as URL parameters, these settings override the settings used by the client. Defaults to mdkclient.
Application Version and Notes on the Settings App
The Mobile Development Kit client tracks several versions, which you can view in the iOS Settings menu. These versions are identified as the application version, the definitions version, and the frameworks versions for the frameworks used in the client build.
When generating a client project, you can specify the application version. Specifying the application version allows you to version the client itself, which can be useful if you change extension controls or other branded settings. To specify the application version, specify the AppVersion property in the MDKProject.json file before running create.client.command.
To further customize the entry of your application in the iOS Settings menu, you can manually edit <ProjectDirectory>/app/App_Resources/iOS/Settings.bundle/Root.plist after the script has completed. You can add new entries, but do not remove existing entries or the application may not function correctly.
For more information, see Implementing an iOS Settings Bundle
.