[TIMOB-10499] BlackBerry: Support setting properties from tiapp.xml
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-03-02T03:40:58.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 3.1.0, 2013 Sprint 05 BB, 2013 Sprint 05 |
| Components | BlackBerry |
| Labels | n/a |
| Reporter | David Lifshitz |
| Assignee | Josh Roesslein |
| Created | 2012-08-20T13:46:32.000+0000 |
| Updated | 2017-03-08T17:45:23.000+0000 |
Description
If the following is put in tiapp.xml:
<property name="driver.socketPort">40406</property>
Then it should be available in the .js:
Ti.App.Properties.getInt("driver.socketPort");
This is specified here: http://docs.appcelerator.com/titanium/2.1/index.html#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-Applicationproperties
A possible solution would be to output a .js file as part of the build process. But first check what other platforms do.
Closing ticket as resolved.