This documentation relates to previous versions of Titanium Studio.

To see the latest documentation, visit docs.appcelerator.com.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Actions
Requirements

The examples in this page use the Prototype library, which is included by default inside a portal. However, the same concepts may be applied using other implementations.

Description

These set of actions can retrieve a Titanium Modules information from the Studio. The actions support both Mobile modules and Desktop modules.

Invocation

This command is executed immediately in a synchronous way.

Mobile Modules

The following dispatch call will get the Titanium Mobile Modules information:

The returned mobules information JSON is a Map object that has two roots:

  1. global_modules - Holds the modules that were installed into the Titanium SDK folder (<sdk-dir>/modules).
  2. project_modules - Holds the modules that were installed into the opened Titanium Mobile Projects in the workspace.

Global Modules

As described above, the Global Modules are the modules that were installed into the Titanium SDK modules directory.
The hash value for the global_modules key holds an array of module-descriptions. Each item in this array is a hash that holds the following information:

key

description

name

The name of the module

platforms

The platforms that this module has support for (an array)

versions

The versions that this module has support for (an array)

type

The module-type ('global' or 'project', and in this case - only 'global')

Project's Modules

The Studio collects all the modules information from the Titanium Mobile Projects in the workspace. Modules that were located under a modules directory in a project are considered as installed-modules for that project.
The hash value for the project_modules key holds a hash that maps from a project-name to an array of modules. Each module in that array holds the same information as described above, with the minor difference in the 'type' field.

Sample of use

See studio3-sdk repository (modules.js)

  • No labels