Versions Compared


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


Demonstrates use of the Alloy configuration file.

titleApp Folder Location


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.