Mobile Framework

Configure the Mobile Development Environment

This section contains instructions for setting up the Archibus mobile development environment for Archibus V.23.2 and later.

Software

The following software is required when creating or modifying applications built with the Archibus Mobile Framework:

  • Java JRE 7 or higher
  • Sencha Touch SDK version 2.4.2
  • Sencha CMD version 5.1.3. (Sencha Touch is not compatible with Sencha CMD versions 6 or 7.)

  • Ruby version 2.4 (Ruby versions 2.0 through 2.4 are known to be compatible with Sencha CMD)

The following software is optional and is only required if you wish to lint the JavaScript code using JSHint during the app build:

  • Node.js
  • JSHint

Installation Procedure

  1. Download Ruby version 2.0.0 from http://rubyinstaller.org/downloads/ .
  2. Execute the Ruby installer file. Accept the installer defaults.
  3. Download the Sencha Touch SDK from www.sencha.com . Make sure to download version 2.4.2, as this is the version used in the Archibus V.23.2 and later mobile apps.
  4. Unzip the contents of sencha-touch-2.4.2-commercial.zip to the c:\sencha-touch-2.4.2 folder. Note: The Sencha SDK file location is configured in the sencha.src.dir property of /schema/ab-products/common/mobile/src/build/archibus.properties .
  5. Download the Sencha CMD 5 installer for your platform from http://www.sencha.com/products/sencha-cmd/download/ .
  6. Unzip the downloaded file and execute the installer. Accept the default installer options.

The following steps are optional and are only required if you wish to lint the JavaScript files as part of the app build process

  1. Install Node.js from http://nodejs.org
  2. Install JSHint by executing the command npm install –g jshint .

Verify the Installation

  1. Open a command prompt.
  2. Type sencha . You will see Sencha Cmd v5.1.3.61 printed to the console along with other Sencha CMD information. (The version number may be different depending on the version of CMD 5 that you installed.)
  3. Type ruby –v . You will see ruby 2.4.10p364 (or the version installed) output to the console.