Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6513] TiAPI: deployType - expose as an API for developers

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-13T14:29:56.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2012-04, Release 2.0.0, Release 1.8.2
ComponentsTiAPI
Labelsdr-list, parity
ReporterMatthew Apperson
AssigneeDawson Toth
Created2011-12-08T08:14:47.000+0000
Updated2017-03-09T01:13:13.000+0000

Description

Developers are asking a lot for the ability to have conditional statements for deployType...I was looking through the code and it looks like we already have the code internally in native, but just not in JS land. The requested api would just be a bool value for something like an isProduction API

Comments

  1. Chris Barber 2011-12-12

    FYI, it's currently accessible in mobile web by "require.config.deployType", though it's intended only to be accessed from the core API and Ti+ modules. Formally exposing it through a public API will be trivial.
  2. Dawson Toth 2012-02-09

    Test

       Ti.API.info({
           deployType: Ti.App.deployType,
           sessionId: Ti.App.sessionId
       });
       
  3. Dawson Toth 2012-02-09

    PR sent: https://github.com/appcelerator/titanium_mobile/pull/1384
  4. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source