Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Replaced /titanium/ links with /platform links

Excerpt

Demonstrates use of the Alloy configuration file.

Info
titleApp Folder Location

alloy/test/apps/basics/config_json

The Alloy configuration file is named config.json and located in the Alloy project's app directory. It's used to specify global variables, conditional environment and platform values, and widget dependencies. For a list of supported configuration values, see Project Configuration File.

At runtime, you can access a configuration file property by its key name on the global  Alloy.CFG  object. For instance, in the sample app configuration file defines a global property named someValue that's defined for all environments and platforms, and for individual platforms.

...