To build and package Genero Mobile for Androidâ„¢ (GMA) applications, you must first install GMA.
Before you begin:
The installation and licensing of Genero products requires you to read and
accept the End User License Agreement, which can be found on the Four Js website at http://4js.com/end-user-license-agreements/.
Important: The GMA and Genero BDL X.YZ versions are interdependent. For example, GMA
1.30 is required to work with Genero BDL version 3.10, GMA 1.40 is required to work with Genero BDL
3.20.
- Download Genero Mobile for Android
(GMA) from the Four Js Web site.
- Install Genero Business Development Language. See Installing Genero BDL for
more details.
-
Install the Java Development Kit (JDK).
Important:
JDK version 8 is required to build Android apps. For the latest information regarding system requirements and Java support,
please refer to the Supported platforms and databases document, available on the
"Products" download page of the Four Js Web site.
-
Install Android SDK. Set the
ANDROID_SDK_ROOT environment variable to the installation directory.
-
Install the GMA buildtool and the GMA binary archive.
They are provided in the GMA distribution archive
(fjs-gma-*.zip).
-
Create a directory (gma-install-dir) for the GMA development
tools.
$ mkdir /opt/fourjs/gma-1.30
-
Extract the content of the Genero Mobile for Android package (fjs-gma-*.zip) into this
directory.
$ unzip -q -o -d /opt/fourjs/gma-1.30 fjs-gma-*.zip
-
Add the gma-install-dir directory to your PATH environment
variable, in order to find the gmabuildtool command.
-
Execute the gmabuildtool updatesdk command.
An internet connection is required.
Important: Execute the
gmabuildtool updatesdk command every time a new version of the GMA
buildtool and GMA binary archive is installed.
-
If you plan to publish your app on Google Play, register to Google Play as a developer and create a Google Play
project.
-
If you have installed Cordova plugins, you need to re-install the plugins with the
--install-plugin
option of gmabuildtool. For more details, see
Installing Cordova plugins.