Skip Navigation

Distributing a Red App Among Multiple Plug-in Projects

When you create a Red App, you can distribute the functionality among multiple plug-in projects within a Red App bundle. While only the main plug-in can use SRWRuntime communications, the advantages to using multi-module architecture for other non-communications functionality are described as follows:

  • To separate code that multiple Red Apps use, for example, graphical user interface widgets. You can package the common code as a separate plug-in, thereby enabling other Red Apps that you create to use this common code.

  • To optimize Red App installation. When multiple Red Apps that share a common plug-in are installed, the common plug-in is downloaded and installed only once. This saves space in the local workspace and it creates a better user experience.

Sharing a common plug-in does not require you to take any special action. An example of how it works follows. Suppose that you have two Red Apps. They both share your GUI widget plug-in project. When your first Red App is installed in a local workspace, all of its plug-ins are installed as Eclipse plug-ins in Sabre Red 360. When your second Red App is installed, the GUI plug-in is not downloaded and installed a second time because it is already present in the local workspace.

For more information about requirements and resources for multiple plug-in projects within a Red App, see the following topics: