Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10499] BlackBerry: Support setting properties from tiapp.xml

GitHub Issuen/a
TypeSub-task
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-03-02T03:40:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 05 BB, 2013 Sprint 05
ComponentsBlackBerry
Labelsn/a
ReporterDavid Lifshitz
AssigneeJosh Roesslein
Created2012-08-20T13:46:32.000+0000
Updated2017-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.

Comments

  1. Lee Morris 2017-03-08

    Closing ticket as resolved.

JSON Source