[TIMOB-6513] TiAPI: deployType - expose as an API for developers
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-13T14:29:56.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2012-04, Release 2.0.0, Release 1.8.2 |
Components | TiAPI |
Labels | dr-list, parity |
Reporter | Matthew Apperson |
Assignee | Dawson Toth |
Created | 2011-12-08T08:14:47.000+0000 |
Updated | 2017-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
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.
Test
PR sent: https://github.com/appcelerator/titanium_mobile/pull/1384
Closing ticket as fixed.